-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (68 loc) · 1.6 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
xy-starter-mysql:
build:
context: ./
dockerfile: ./db/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: root123!
restart: always
container_name: xy-starter-mysql
image: xy-starter-mysql
ports:
- 3306:3306
volumes:
- ./xy-starter-mysql:/var/lib/mysql
command: --lower_case_table_names=1
xy-starter-redis:
image: redis:5.0.4
restart: always
container_name: xy-starter-redis
ports:
- 6379:6379
xy-starter-main-admin:
build:
context: ./
dockerfile: ./xy-starter-main-admin/Dockerfile
restart: always
container_name: xy-starter-main-admin
environment:
- DB_URL=xy-starter-mysql
- DB_NAME=xy-starter
- DB_USERNAME=root
- DB_PWD=root123!
- REDIS_HOST=xy-starter-redis
- REDIS_PORT=6379
- REDIS_DATABASE=1
image: xy-starter-main-admin
ports:
- 8000:8000
depends_on:
- xy-starter-redis
- xy-starter-mysql
links:
- "xy-starter-redis"
- "xy-starter-mysql"
xy-starter-main-api:
build:
context: ./
dockerfile: ./xy-starter-main-api/Dockerfile
restart: always
container_name: xy-starter-main-api
environment:
- DB_URL=xy-starter-mysql
- DB_NAME=xy-starter
- DB_USERNAME=root
- DB_PWD=root123!
- REDIS_HOST=xy-starter-redis
- REDIS_PORT=6379
- REDIS_DATABASE=1
image: xy-starter-main-api
ports:
- 8001:8001
depends_on:
- xy-starter-redis
- xy-starter-mysql
links:
- "xy-starter-redis"
- "xy-starter-mysql"