2021-01-12 18:21:53 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
migrations:
|
2021-03-08 19:54:09 +00:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 18:21:53 +00:00
|
|
|
volumes:
|
2021-01-25 12:36:16 +00:00
|
|
|
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
|
2021-01-12 18:21:53 +00:00
|
|
|
environment:
|
|
|
|
ENABLE_UWSGI: 'no'
|
|
|
|
ENABLE_NGINX: 'no'
|
|
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
|
|
ENABLE_CELERY_LONG: 'no'
|
|
|
|
ENABLE_CELERY_BEAT: 'no'
|
2021-08-02 19:03:32 +00:00
|
|
|
ADMIN_USER: 'admin'
|
|
|
|
ADMIN_EMAIL: 'admin@localhost'
|
|
|
|
#ADMIN_PASSWORD: 'uncomment_and_set_password_here'
|
2021-08-01 15:54:13 +00:00
|
|
|
command: "./deploy/docker/prestart.sh"
|
|
|
|
restart: on-failure
|
2021-01-12 18:21:53 +00:00
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
web:
|
2021-03-08 19:54:09 +00:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 18:21:53 +00:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
|
|
|
- media_store:/home/mediacms.io/mediacms/media_files/
|
|
|
|
- static_store:/home/mediacms.io/mediacms/static/
|
2021-01-25 12:36:16 +00:00
|
|
|
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
|
2021-01-12 18:21:53 +00:00
|
|
|
environment:
|
|
|
|
ENABLE_CELERY_BEAT: 'no'
|
|
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
|
|
ENABLE_CELERY_LONG: 'no'
|
|
|
|
ENABLE_MIGRATIONS: 'no'
|
|
|
|
depends_on:
|
|
|
|
- migrations
|
|
|
|
celery_beat:
|
2021-03-08 19:54:09 +00:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 18:21:53 +00:00
|
|
|
volumes:
|
2021-01-25 12:36:16 +00:00
|
|
|
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
|
2021-01-12 18:21:53 +00:00
|
|
|
environment:
|
|
|
|
ENABLE_UWSGI: 'no'
|
|
|
|
ENABLE_NGINX: 'no'
|
|
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
|
|
ENABLE_CELERY_LONG: 'no'
|
|
|
|
ENABLE_MIGRATIONS: 'no'
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
celery_worker:
|
2021-03-08 19:54:09 +00:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 18:21:53 +00:00
|
|
|
deploy:
|
2021-01-25 12:36:16 +00:00
|
|
|
replicas: 1
|
2021-01-12 18:21:53 +00:00
|
|
|
volumes:
|
|
|
|
- media_store:/home/mediacms.io/mediacms/media_files/
|
|
|
|
- static_store:/home/mediacms.io/mediacms/static/
|
2021-01-25 12:36:16 +00:00
|
|
|
- ./deploy/docker/local_settings.py:/home/mediacms.io/mediacms/deploy/docker/local_settings.py
|
2021-01-12 18:21:53 +00:00
|
|
|
environment:
|
|
|
|
ENABLE_UWSGI: 'no'
|
|
|
|
ENABLE_NGINX: 'no'
|
|
|
|
ENABLE_CELERY_BEAT: 'no'
|
|
|
|
ENABLE_MIGRATIONS: 'no'
|
|
|
|
depends_on:
|
|
|
|
- migrations
|
|
|
|
db:
|
2023-07-03 10:39:15 +00:00
|
|
|
image: postgres:15.2-alpine
|
2021-01-12 18:21:53 +00:00
|
|
|
volumes:
|
|
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mediacms
|
|
|
|
POSTGRES_PASSWORD: mediacms
|
|
|
|
POSTGRES_DB: mediacms
|
2023-07-03 10:39:15 +00:00
|
|
|
TZ: Europe/London
|
2021-01-12 18:21:53 +00:00
|
|
|
healthcheck:
|
2024-09-20 09:52:50 +00:00
|
|
|
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}", "--host=db", "--dbname=$POSTGRES_DB", "--username=$POSTGRES_USER"]
|
2021-01-25 12:36:16 +00:00
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
2021-01-12 18:21:53 +00:00
|
|
|
retries: 5
|
|
|
|
redis:
|
|
|
|
image: "redis:alpine"
|
|
|
|
restart: always
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli","ping"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
volumes:
|
|
|
|
postgres_data:
|
|
|
|
media_store:
|
|
|
|
static_store:
|