mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-16 07:01:54 +08:00
71 lines
2.0 KiB
YAML
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
|