2021-01-12 19:21:53 +01:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
migrations:
|
2021-03-08 20:54:09 +01:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 19:21:53 +01:00
|
|
|
volumes:
|
2021-01-25 13:36:16 +01:00
|
|
|
- ./:/home/mediacms.io/mediacms/
|
2021-01-12 19:21:53 +01:00
|
|
|
environment:
|
|
|
|
ENABLE_UWSGI: 'no'
|
|
|
|
ENABLE_NGINX: 'no'
|
|
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
|
|
ENABLE_CELERY_LONG: 'no'
|
|
|
|
ENABLE_CELERY_BEAT: 'no'
|
2021-08-02 21:03:32 +02:00
|
|
|
ADMIN_USER: 'admin'
|
|
|
|
ADMIN_EMAIL: 'admin@localhost'
|
|
|
|
#ADMIN_PASSWORD: 'uncomment_and_set_password_here'
|
2021-08-01 17:54:13 +02:00
|
|
|
command: "./deploy/docker/prestart.sh"
|
|
|
|
restart: on-failure
|
2021-01-12 19:21:53 +01:00
|
|
|
depends_on:
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
web:
|
2021-03-08 20:54:09 +01:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 19:21:53 +01:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
2021-01-25 13:36:16 +01:00
|
|
|
- ./:/home/mediacms.io/mediacms/
|
2021-01-12 19:21:53 +01: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 20:54:09 +01:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 19:21:53 +01:00
|
|
|
volumes:
|
2021-01-25 13:36:16 +01:00
|
|
|
- ./:/home/mediacms.io/mediacms/
|
2021-01-12 19:21:53 +01: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 20:54:09 +01:00
|
|
|
image: mediacms/mediacms:latest
|
2021-01-12 19:21:53 +01:00
|
|
|
deploy:
|
|
|
|
replicas: 1
|
|
|
|
volumes:
|
2021-01-25 13:36:16 +01:00
|
|
|
- ./:/home/mediacms.io/mediacms/
|
2021-01-12 19:21:53 +01:00
|
|
|
environment:
|
|
|
|
ENABLE_UWSGI: 'no'
|
|
|
|
ENABLE_NGINX: 'no'
|
|
|
|
ENABLE_CELERY_BEAT: 'no'
|
|
|
|
ENABLE_MIGRATIONS: 'no'
|
|
|
|
depends_on:
|
|
|
|
- migrations
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
volumes:
|
2021-01-25 13:36:16 +01:00
|
|
|
- ../postgres_data:/var/lib/postgresql/data/
|
2021-01-12 19:21:53 +01:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: mediacms
|
|
|
|
POSTGRES_PASSWORD: mediacms
|
|
|
|
POSTGRES_DB: mediacms
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U mediacms"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
redis:
|
|
|
|
image: "redis:alpine"
|
|
|
|
restart: always
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli","ping"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
2021-03-08 20:54:09 +01:00
|
|
|
retries: 3
|