2024-11-13 15:49:45 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
mediacms-migrations:
|
|
|
|
image: qyg2297248353/mediacms:v4.1.0
|
|
|
|
container_name: migrations-${CONTAINER_NAME}
|
|
|
|
env_file:
|
2024-11-27 17:54:18 +08:00
|
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
2024-11-13 15:49:45 +08:00
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
volumes:
|
2024-11-13 16:54:36 +08:00
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/hls:/home/mediacms.io/mediacms/media_files/hls
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/original:/home/mediacms.io/mediacms/media_files/original
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/uploads:/home/mediacms.io/mediacms/media_files/uploads
|
2024-11-13 16:21:43 +08:00
|
|
|
command:
|
|
|
|
- ./deploy/docker/prestart.sh
|
2024-11-13 15:49:45 +08:00
|
|
|
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}
|
2024-11-13 16:21:43 +08:00
|
|
|
depends_on:
|
|
|
|
- mediacms-migrations
|
2024-11-13 15:49:45 +08:00
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:80
|
|
|
|
env_file:
|
2024-11-27 17:54:18 +08:00
|
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
2024-11-13 15:49:45 +08:00
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
volumes:
|
2024-11-13 16:54:36 +08:00
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/hls:/home/mediacms.io/mediacms/media_files/hls
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/original:/home/mediacms.io/mediacms/media_files/original
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/uploads:/home/mediacms.io/mediacms/media_files/uploads
|
2024-11-13 15:49:45 +08:00
|
|
|
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:
|
2024-11-13 16:54:36 +08:00
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/hls:/home/mediacms.io/mediacms/media_files/hls
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/original:/home/mediacms.io/mediacms/media_files/original
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/uploads:/home/mediacms.io/mediacms/media_files/uploads
|
2024-11-13 15:49:45 +08:00
|
|
|
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}
|
2024-11-13 16:21:43 +08:00
|
|
|
depends_on:
|
|
|
|
- mediacms-migrations
|
2024-11-13 15:49:45 +08:00
|
|
|
volumes:
|
2024-11-13 16:54:36 +08:00
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/hls:/home/mediacms.io/mediacms/media_files/hls
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/original:/home/mediacms.io/mediacms/media_files/original
|
|
|
|
- ${MEDIACMS_ROOT_PATH}/media_files/uploads:/home/mediacms.io/mediacms/media_files/uploads
|
2024-11-13 15:49:45 +08:00
|
|
|
environment:
|
|
|
|
- ENABLE_UWSGI=no
|
|
|
|
- ENABLE_NGINX=no
|
|
|
|
- ENABLE_CELERY_BEAT=no
|
|
|
|
- ENABLE_MIGRATIONS=no
|