services: db: image: postgres:14 volumes: - postgres_data:/var/lib/postgresql/data/ environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} networks: - app-network web: build: . command: gunicorn config.wsgi:application --bind 0.0.0.0:8000 volumes: - .:/code ports: - "3000:3000" depends_on: - db # env_file: # - .env networks: - app-network volumes: postgres_data: networks: app-network: