mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-07 17:04:53 +01:00
3b35ce0262
* use mediacms image from docker hub
81 lines
1.8 KiB
YAML
81 lines
1.8 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
migrations:
|
|
image: mediacms/mediacms:latest
|
|
volumes:
|
|
- ./:/home/mediacms.io/mediacms/
|
|
environment:
|
|
ENABLE_UWSGI: 'no'
|
|
ENABLE_NGINX: 'no'
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
ENABLE_CELERY_LONG: 'no'
|
|
ENABLE_CELERY_BEAT: 'no'
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
db:
|
|
condition: service_healthy
|
|
web:
|
|
image: mediacms/mediacms:latest
|
|
deploy:
|
|
replicas: 1
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./:/home/mediacms.io/mediacms/
|
|
environment:
|
|
ENABLE_CELERY_BEAT: 'no'
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
ENABLE_CELERY_LONG: 'no'
|
|
ENABLE_MIGRATIONS: 'no'
|
|
depends_on:
|
|
- migrations
|
|
celery_beat:
|
|
image: mediacms/mediacms:latest
|
|
volumes:
|
|
- ./:/home/mediacms.io/mediacms/
|
|
environment:
|
|
ENABLE_UWSGI: 'no'
|
|
ENABLE_NGINX: 'no'
|
|
ENABLE_CELERY_SHORT: 'no'
|
|
ENABLE_CELERY_LONG: 'no'
|
|
ENABLE_MIGRATIONS: 'no'
|
|
depends_on:
|
|
- redis
|
|
celery_worker:
|
|
image: mediacms/mediacms:latest
|
|
deploy:
|
|
replicas: 1
|
|
volumes:
|
|
- ./:/home/mediacms.io/mediacms/
|
|
environment:
|
|
ENABLE_UWSGI: 'no'
|
|
ENABLE_NGINX: 'no'
|
|
ENABLE_CELERY_BEAT: 'no'
|
|
ENABLE_MIGRATIONS: 'no'
|
|
depends_on:
|
|
- migrations
|
|
db:
|
|
image: postgres
|
|
volumes:
|
|
- ../postgres_data:/var/lib/postgresql/data/
|
|
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
|
|
retries: 3
|