|
@@ -1,6 +1,7 @@
|
|
|
version : '3'
|
|
|
services:
|
|
|
mysql:
|
|
|
+# platform: linux/x86_64
|
|
|
container_name: mysql
|
|
|
image: mysql:5.7
|
|
|
build:
|
|
@@ -21,8 +22,8 @@ services:
|
|
|
'--lower-case-table-names=1'
|
|
|
]
|
|
|
environment:
|
|
|
- MYSQL_DATABASE: landian
|
|
|
- MYSQL_ROOT_PASSWORD: ld123456
|
|
|
+ MYSQL_DATABASE: ${DB_NAME}
|
|
|
+ MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
|
|
|
|
|
|
redis:
|
|
|
image: redis:5.0
|
|
@@ -30,17 +31,27 @@ services:
|
|
|
- "6379:6379"
|
|
|
restart: always
|
|
|
|
|
|
- landian-server:
|
|
|
- container_name: landian-server
|
|
|
+ zyc-server:
|
|
|
+ container_name: zyc-server
|
|
|
build:
|
|
|
context: .
|
|
|
- dockerfile: landian-dockerfile
|
|
|
+ dockerfile: zyc-dockerfile
|
|
|
ports:
|
|
|
- "80:80"
|
|
|
volumes:
|
|
|
- - ./landian/logs:/home/landian/logs
|
|
|
- - ./landian/uploadPath:/home/landian/uploadPath
|
|
|
+ - ./zyc/logs:/home/zyc/logs
|
|
|
+ - ./zyc/uploadPath:/home/zyc/uploadPath
|
|
|
depends_on:
|
|
|
- - landian-mysql
|
|
|
+ - mysql
|
|
|
links:
|
|
|
- - landian-mysqlw
|
|
|
+ - mysql
|
|
|
+ environment:
|
|
|
+ DB_HOST: ${DB_HOST}
|
|
|
+ DB_USERNAME: ${DB_USERNAME}
|
|
|
+ DB_PASSWORD: ${DB_PASSWORD}
|
|
|
+ DB_NAME: ${DB_NAME}
|
|
|
+ DB_PORT: ${DB_PORT}
|
|
|
+ REDIS_HOST: ${REDIS_HOST}
|
|
|
+ REDIS_PORT: ${REDIS_PORT}
|
|
|
+ REDIS_PASSWORD: ${REDIS_PASSWORD}
|
|
|
+ REDIS_DATABASE: ${REDIS_DATABASE}
|