-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
50 lines (50 loc) · 1.38 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "2"
services:
redis:
image: redis:4.0.6
ports:
- "6379:6379"
# 指定 redis 访问密码,要与后面 REDIS_PASSWORD 定义一致
command: redis-server --requirepass hello
# volumes:
# - /facelog_data:/data
db:
build: db
# 不需要对外发布数据库端口
# ports:
# - "3306:3306"
environment:
# MYSQL_ROOT_PASSWORD: root
# 数据库访问用户名/密码
# MYSQL_USER: gdface
# MYSQL_PASSWORD: gdface
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: gdface
# volumes:
# - /facelog_data:/var/lib/mysql
facelog:
build:
context: facelog-service/target
dockerfile: Dockerfile
environment :
REDIS_HOST: redis
REDIS_PASSWORD: hello
DATABASE_HOST: db
DATABASE_SCHEMA: gdface
# 数据库访问用户名/密码
# DATABASE_USER: gdface
# DATABASE_PASSWORD: gdface
# service远程调试开关,设置为true同时打开8000端口才有效
# FACELOG_DEBUG: true
ports:
- "26411:26411"
# debug 调试需要
# - "8000:8000"
links:
- redis
- db
depends_on:
- db
- redis
# volumes:
# - /facelog_data:/data