version: "3.8" services: # Frontend - Puerto 9112 codigo0-frontend: build: context: ./frontend dockerfile: Dockerfile container_name: codigo0-frontend restart: always ports: - "9112:9112" networks: - proxy environment: - VITE_API_URL=http://207.180.226.141:3002/api # Backend - Puerto 3000 codigo0-backend: build: context: ./backend dockerfile: Dockerfile container_name: codigo0-backend restart: always ports: - "3002:3000" networks: - proxy environment: - PORT=3000 - NODE_ENV=production - MONGODB_URI=mongodb://mongodb:27017/codigo0 - CORS_ORIGIN=* # MongoDB mongodb: image: mongo:latest container_name: codigo0-mongodb ports: - "27017:27017" restart: always volumes: - mongodb_data:/data/db networks: - proxy # Promo Site - Puerto 9113 codigo0-promo: build: context: ./promo-site dockerfile: Dockerfile container_name: codigo0-promo restart: always ports: - "9113:80" networks: - proxy networks: proxy: external: true volumes: mongodb_data: