1
0
1Panel-Appstore/apps/mixspace/7/docker-compose.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2024-02-29 08:44:14 +08:00
services:
2024-03-14 17:10:56 +08:00
mixspace:
2024-02-29 08:44:14 +08:00
container_name: ${CONTAINER_NAME}
image: innei/mx-server:7
2024-02-29 08:44:14 +08:00
command: bash ./docker-run.sh
environment:
2024-03-14 17:10:56 +08:00
- TZ=${TIME_ZONE}
2024-02-29 08:44:14 +08:00
- NODE_ENV=production
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- JWT_SECRET=${JWT_SECRET}
2024-03-01 00:05:51 +08:00
- ENCRYPT_KEY=${ENCRYPT_KEY}
- ENCRYPT_ENABLE=${ENCRYPT_ENABLE}
2024-02-29 08:44:14 +08:00
volumes:
- ./data/mx-space:/root/.mx-space
ports:
- '${PANEL_APP_PORT_HTTP}:2333'
networks:
2024-03-14 17:10:56 +08:00
- mixspace-network
2024-02-29 08:44:14 +08:00
restart: always
healthcheck:
test: ['CMD', 'curl', '-f', 'http://127.0.0.1:2333/api/v2/ping']
interval: 1m30s
timeout: 30s
retries: 5
start_period: 30s
2024-03-14 17:10:56 +08:00
depends_on:
- mongo
- redis
links:
- mongo
- redis
2024-02-29 08:44:14 +08:00
labels:
createdBy: "Apps"
mongo:
2024-03-14 17:10:56 +08:00
container_name: ${CONTAINER_NAME}-mongo
2024-02-29 08:44:14 +08:00
image: mongo
volumes:
- ./data/db:/data/db
networks:
2024-03-14 17:10:56 +08:00
- mixspace-network
2024-02-29 08:44:14 +08:00
restart: always
2024-03-14 17:10:56 +08:00
labels:
createdBy: "Apps"
2024-02-29 08:44:14 +08:00
redis:
image: redis
2024-03-14 17:10:56 +08:00
container_name: ${CONTAINER_NAME}-redis
2024-02-29 08:44:14 +08:00
networks:
2024-03-14 17:10:56 +08:00
- mixspace-network
2024-02-29 08:44:14 +08:00
restart: always
2024-03-14 17:10:56 +08:00
labels:
createdBy: "Apps"
networks:
mixspace-network:
driver: bridge
ipam:
driver: default
config:
- subnet: ${SUBNET_PREFIX}.0/16