version: '3.6' services: web: build: . ports: - 5001:5000 environment: - FLASK_ENV=production - APP_SETTINGS=project.config.DevelopmentConfig - DATABASE_URL=postgres://postgres:postgres@db:5432/users depends_on: - db db: build: context: ./project/db dockerfile: Dockerfile expose: - 5432 environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres