-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (54 loc) · 1.69 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
version: "3.3"
services:
mysqldb:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=1234
- MYSQL_TCP_PORT=4407
ports:
- "4407:4407"
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./CreateTable.sql:/docker-entrypoint-initdb.d/CreateTable.sql
networks:
- booking-sys
activemq:
image: apache/activemq-artemis:latest-alpine
ports:
- "61616:61616"
- "8161:8161"
networks:
- booking-sys
inventory-service:
depends_on:
- mysqldb
- activemq
build:
context: ./hcg-interview-services-inventory/hcg-interview-services-inventory/hcg-interview-services-inventory
dockerfile: Dockerfile
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://mysqldb:4407/bookingsystemdb?createDatabaseIfNotExists=true&useSSL=false&useUnicode=true&characterEncoding=utf8&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=1234
ports:
- "9090:9090"
networks:
- booking-sys
booking-service:
depends_on:
- mysqldb
- activemq
build:
context: ./hcg-interview-services-booking/hcg-interview-services-booking/hcg-interview-services-booking
dockerfile: Dockerfile
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://mysqldb:4407/bookingsystemdb?createDatabaseIfNotExists=true&useSSL=false&useUnicode=true&characterEncoding=utf8&useLegacyDatetimeCode=false&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=1234
ports:
- "9091:9091"
networks:
- booking-sys
networks:
booking-sys:
driver: bridge