You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
feo-homepage/docker-compose.yml

72 lines
1.4 KiB

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
volumes:
- .:/app
- userhome:/home/runuser
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"
volumes:
- .:/app
- userhome:/home/runuser
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
volumes:
- .:/app
- userhome:/home/uid1000
env_file:
- .env
depends_on:
- redis
restart: unless-stopped
redis:
image: redis:alpine
restart: unless-stopped
volumes:
userhome:
driver: local
dbdata:
driver: local