mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-28 16:26:19 +08:00
79 lines
2.8 KiB
YAML
79 lines
2.8 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/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
|
|
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/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
|
|
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/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
|
|
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/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
|
|
environment:
|
|
- ENABLE_UWSGI=no
|
|
- ENABLE_NGINX=no
|
|
- ENABLE_CELERY_BEAT=no
|
|
- ENABLE_MIGRATIONS=no
|