services: web: image: frontend build: ../frontend stdin_open: true # docker run -i tty: true # docker run -t environment: - FRONT_PORT=3001 - NEXT_PUBLIC_BACK_API=http://localhost:3000 ports: - "3001:3001" logging: driver: json-file options: max-size: "10m" max-file: "3" db: image: postgres volumes: - ./data/db:/var/lib/postgresql/data environment: - POSTGRES_HOST_AUTH_METHOD=trust - POSTGRES_DB=db_tour_builder_platform ports: - "5432:5432" logging: driver: json-file options: max-size: "10m" max-file: "3" backend: image: backend build: ../backend volumes: - ./wait-for-it.sh:/usr/src/app/wait-for-it.sh - ./start-backend.sh:/usr/src/app/start-backend.sh environment: - NODE_ENV=dev_stage - DB_HOST=db - DB_PORT=5432 - DB_NAME=db_tour_builder_platform - DB_USER=postgres - DB_PASS= - PORT=3000 ports: - "3000:3000" logging: driver: json-file options: max-size: "10m" max-file: "3" depends_on: - "db" command: ["bash", "./wait-for-it.sh", "db:5432", "--timeout=0", "--strict", "--", "bash", "./start-backend.sh"]