-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.45 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
version: '3'
services:
tododb:
container_name: tododb
image: 'mariadb'
restart: 'on-failure'
command: --init-file /init.sql
volumes:
- /home/yongjia/JavaProjects/demo/init.sql:/init.sql
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'tododb'
MYSQL_USER: 'appuser'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_HOST: '%'
networks: ['backend']
ports:
- '3307:3306'
tododb2:
image: 'mariadb'
restart: 'always'
command: --init-file /init.sql
volumes:
- /home/yongjia/JavaProjects/demo/init.sql:/init.sql
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'tododb'
MYSQL_USER: 'appuser'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_HOST: '%'
networks: ['backend']
ports:
- '3308:3306'
vertxtodo:
depends_on:
- 'tododb'
build: ./vert.x/.
networks: ['backend']
links:
- 'tododb'
ports:
- '8081:8080'
springrxtodo:
depends_on:
- 'tododb2'
build: ./spring.rx/.
networks: ['backend']
ports:
- '8082:8082'
networks:
backend:
driver: 'bridge'
#networks:
# backend_todo:
# external:
# name: 'todo-app'