fix:同步docker compose配置文件

pull/358/head
lifei6671 2018-08-20 14:27:24 +08:00
parent 8242fb26d0
commit ef7857e859
1 changed files with 23 additions and 37 deletions

View File

@ -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"