version: '3' networks: fooder: driver: bridge services: database: restart: unless-stopped image: postgres networks: - fooder env_file: - .env api: restart: unless-stopped image: registry.domandoman.xyz/fooder/api build: dockerfile: Dockerfile context: . networks: - fooder env_file: - .env ports: - "8000:8000" tasks: restart: unless-stopped image: registry.domandoman.xyz/fooder/api networks: - fooder env_file: - .env command: "uvicorn fooder.tasks_app:app --host 0.0.0.0 --port 8000 --workers 1" cron: restart: unless-stopped image: registry.domandoman.xyz/fooder/cron build: dockerfile: Dockerfile.cron context: . networks: - fooder env_file: - .env