version: '3' services: db: image: 'postgres' container_name: questionForm_db env_file: - .env volumes: - db_data:/var/lib/postgresql/data frontend: container_name: questionForm_frontend restart: unless-stopped build: frontend/ ports: - 3000:3000 env_file: .env volumes: - frontend-build-folder:/frontend/build depends_on: - backend backend: container_name: questionForm_backend restart: unless-stopped build: backend/ env_file: .env expose: - $BACKEND_PORT ports: - 4000:4000 depends_on: - db volumes: db_data: frontend-build-folder: networks: internal: external: false web: external: true