version: "3.6" services: postgres: image: postgres:12 environment: POSTGRES_PASSWORD: postgres ports: - 5433:5432 volumes: - dbdata:/var/lib/postgresql/data postgrest_api: build: ./postgrest environment: JWT_SECRET: ${JWT_SECRET} POSTGREST_PASSWORD: ${POSTGREST_PASSWORD} depends_on: - postgres ports: - 3000:3000 login_service: build: ./login-service command: npm run dev environment: JWT_SECRET: ${JWT_SECRET} depends_on: - postgrest_api ports: - 4000:4000 volumes: - ./login-service/src:/app/src frontend: build: ./frontend environment: GOOGLE_OAUTH_ID: ${GOOGLE_OAUTH_ID} LOGIN_API_URL: http://localhost:4000 POSTGREST_API_URL: http://localhost:3000 depends_on: - login_service ports: - 5000:5000 - 40000:40000 volumes: - ./frontend/src:/app/src volumes: dbdata: