services: backend: build: context: . args: UID: "${UID}" GID: "${GID}" entrypoint: - "daphne" command: "-b 0.0.0.0 feo_homepage.asgi:application" deploy: mode: replicated replicas: 6 endpoint_mode: vip env_file: - .env environment: PYTHONDONTWRITEBYTECODE: 1 DJANGO_SETTINGS_MODULE: feo_homepage.settings.prod restart: unless-stopped manage: build: context: . args: UID: "${UID}" GID: "${GID}" entrypoint: - "./manage.py" command: "collectstatic --no-input" env_file: - .env environment: PYTHONDONTWRITEBYTECODE: 1 DJANGO_SETTINGS_MODULE: feo_homepage.settings.prod celery: build: context: . args: UID: "${UID}" GID: "${GID}" entrypoint: - 'celery' command: "-A feo_homepage worker --beat -l INFO" environment: PYTHONDONTWRITEBYTECODE: 1 DJANGO_SETTINGS_MODULE: feo_homepage.settings.prod env_file: - .env depends_on: - redis restart: unless-stopped redis: image: redis:alpine restart: unless-stopped volumes: userhome: driver: local dbdata: driver: local