mirror of https://github.com/mindoc-org/mindoc.git
fix:同步docker compose配置文件
parent
8242fb26d0
commit
ef7857e859
|
@ -1,37 +1,23 @@
|
||||||
version: '2'
|
MinDoc_New:
|
||||||
|
image: registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v0.13
|
||||||
services:
|
privileged: false
|
||||||
|
restart: always
|
||||||
### Applications Code Container #############################
|
ports:
|
||||||
|
- 8181:8181
|
||||||
applications:
|
volumes:
|
||||||
image: tianon/true
|
- /var/www/mindoc/database:/mindoc/database
|
||||||
### Workspace Utilities Container ###########################
|
- /var/www/mindoc/uploads:/mindoc/uploads
|
||||||
|
environment:
|
||||||
mindoc:
|
- MINDOC_RUN_MODE=prod
|
||||||
build:
|
- MINDOC_DB_ADAPTER=sqlite3
|
||||||
context: ./
|
- MINDOC_DB_DATABASE=./database/mindoc.db
|
||||||
env_file: .env
|
- MINDOC_CACHE=true
|
||||||
environment:
|
- MINDOC_CACHE_PROVIDER=file
|
||||||
- MYSQL_PORT_3306_TCP_ADDR=${MYSQL_PORT_3306_TCP_ADDR}
|
- MINDOC_ENABLE_EXPORT=false
|
||||||
- MYSQL_PORT_3306_TCP_PORT=${MYSQL_PORT_3306_TCP_PORT}
|
- MINDOC_BASE_URL=
|
||||||
- MYSQL_INSTANCE_NAME=${MYSQL_INSTANCE_NAME}
|
- MINDOC_CDN_IMG_URL=
|
||||||
- MYSQL_USERNAME=${MYSQL_USERNAME}
|
- MINDOC_CDN_CSS_URL=
|
||||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
- MINDOC_CDN_JS_URL=
|
||||||
- HTTP_PORT=${HTTP_PORT}
|
dns:
|
||||||
ports:
|
- 223.5.5.5
|
||||||
- "${HTTP_PORT}:8181"
|
- 223.6.6.6
|
||||||
volumes_from:
|
|
||||||
- applications
|
|
||||||
tty: true
|
|
||||||
networks:
|
|
||||||
- backend
|
|
||||||
|
|
||||||
|
|
||||||
### Networks Setup ############################################
|
|
||||||
|
|
||||||
networks:
|
|
||||||
backend:
|
|
||||||
driver: "bridge"
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue