appstore-1panel/apps/mediacms/4.1.0/docker-compose.yml
Meng Sen b7a77debe4 发布应用 Media CMS
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
2024-11-13 16:40:50 +08:00

71 lines
2.0 KiB
YAML

networks:
1panel-network:
external: true
services:
mediacms-migrations:
image: qyg2297248353/mediacms:v4.1.0
container_name: migrations-${CONTAINER_NAME}
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MEDIACMS_ROOT_PATH}/media_files:/home/mediacms.io/mediacms/media_files
command:
- ./deploy/docker/prestart.sh
restart: on-failure
environment:
- ENABLE_UWSGI=no
- ENABLE_NGINX=no
- ENABLE_CELERY_SHORT=no
- ENABLE_CELERY_LONG=no
- ENABLE_CELERY_BEAT=no
- ADMIN_USER=${ADMIN_USER}
- ADMIN_EMAIL=${ADMIN_EMAIL}
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
mediacms:
image: qyg2297248353/mediacms:v4.1.0
container_name: ${CONTAINER_NAME}
depends_on:
- mediacms-migrations
labels:
createdBy: "Apps"
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:80
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${MEDIACMS_ROOT_PATH}/media_files:/home/mediacms.io/mediacms/media_files
restart: always
environment:
- ENABLE_CELERY_BEAT=no
- ENABLE_CELERY_SHORT=no
- ENABLE_CELERY_LONG=no
- ENABLE_MIGRATIONS=no
mediacms-celery-beat:
image: qyg2297248353/mediacms:v4.1.0
container_name: celery-beat-${CONTAINER_NAME}
volumes:
- ${MEDIACMS_ROOT_PATH}/media_files:/home/mediacms.io/mediacms/media_files
environment:
- ENABLE_UWSGI=no
- ENABLE_NGINX=no
- ENABLE_CELERY_SHORT=no
- ENABLE_CELERY_LONG=no
- ENABLE_MIGRATIONS=no
mediacms-celery-worker:
image: qyg2297248353/mediacms:v4.1.0
container_name: celery-worker-${CONTAINER_NAME}
depends_on:
- mediacms-migrations
volumes:
- ${MEDIACMS_ROOT_PATH}/media_files:/home/mediacms.io/mediacms/media_files
environment:
- ENABLE_UWSGI=no
- ENABLE_NGINX=no
- ENABLE_CELERY_BEAT=no
- ENABLE_MIGRATIONS=no