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'
services:
### Applications Code Container #############################
applications:
image: tianon/true
### Workspace Utilities Container ###########################
mindoc:
build:
context: ./
env_file: .env
environment:
- MYSQL_PORT_3306_TCP_ADDR=${MYSQL_PORT_3306_TCP_ADDR}
- MYSQL_PORT_3306_TCP_PORT=${MYSQL_PORT_3306_TCP_PORT}
- MYSQL_INSTANCE_NAME=${MYSQL_INSTANCE_NAME}
- MYSQL_USERNAME=${MYSQL_USERNAME}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- HTTP_PORT=${HTTP_PORT}
MinDoc_New:
image: registry.cn-hangzhou.aliyuncs.com/mindoc/mindoc:v0.13
privileged: false
restart: always
ports:
- "${HTTP_PORT}:8181"
volumes_from:
- applications
tty: true
networks:
- backend
### Networks Setup ############################################
networks:
backend:
driver: "bridge"
- 8181:8181
volumes:
- /var/www/mindoc/database:/mindoc/database
- /var/www/mindoc/uploads:/mindoc/uploads
environment:
- MINDOC_RUN_MODE=prod
- MINDOC_DB_ADAPTER=sqlite3
- MINDOC_DB_DATABASE=./database/mindoc.db
- MINDOC_CACHE=true
- MINDOC_CACHE_PROVIDER=file
- MINDOC_ENABLE_EXPORT=false
- MINDOC_BASE_URL=
- MINDOC_CDN_IMG_URL=
- MINDOC_CDN_CSS_URL=
- MINDOC_CDN_JS_URL=
dns:
- 223.5.5.5
- 223.6.6.6