-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (62 loc) · 1.34 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:
hotel-service:
container_name: edu_ihotel_hotel
build: ./ihotel
networks:
ihotel_net:
ipv4_address: 10.10.0.9
ports:
- 8080:8080
depends_on:
- db-service
volumes:
- volume_ihotel:/usr/local
db-service:
container_name: edu_ihotel_db
image: mariadb
volumes:
- ihotel_mysqldata:/var/lib/mysql/data
ports:
- 3306:3306
networks:
ihotel_net:
ipv4_address: 10.10.0.8
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: ihoteldb
MYSQL_USER: ihotel
MYSQL_PASSWORD: password
payment-service:
container_name: edu_ihotel_payment
build: ./payment
ports:
- 18080:18080
networks:
ihotel_net:
ipv4_address: 10.10.0.10
volumes:
- volume_payment:/usr/local
jennifer-server:
container_name: edu_jennifer_server
build: ./jennifer
ports:
- 7900:7900
networks:
ihotel_net:
ipv4_address: 10.10.0.7
volumes:
- volume_jennifer:/usr/local
networks:
ihotel_net:
driver_opts:
com.docker.network.enable_ipv6: "false"
ipam:
driver: default
config:
- subnet: 10.10.0.0/16
volumes:
ihotel_mysqldata: {}
volume_jennifer: {}
volume_payment: {}
volume_ihotel: {}