-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (49 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
51 lines (49 loc) · 1.22 KB
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
version: '3.8'
services:
order-db:
image: postgres:14
container_name: order-db
environment:
POSTGRES_DB: orderdb
POSTGRES_USER: orderuser
POSTGRES_PASSWORD: orderpassword
ports:
- "5432:5432"
volumes:
- ./sql/init-order.sql:/docker-entrypoint-initdb.d/init.sql
command:
- "postgres"
- "-c"
- "max_prepared_transactions=100"
stock-db:
image: postgres:14
container_name: stock-db
environment:
POSTGRES_DB: stockdb
POSTGRES_USER: stockuser
POSTGRES_PASSWORD: stockpassword
ports:
- "5433:5432"
volumes:
- ./sql/init-stock.sql:/docker-entrypoint-initdb.d/init.sql
command:
- "postgres"
- "-c"
- "max_prepared_transactions=100"
delivery-db:
image: mysql:8
container_name: delivery-db
environment:
MYSQL_DATABASE: deliverydb
MYSQL_USER: deliveryuser
MYSQL_PASSWORD: deliverypassword
MYSQL_ROOT_PASSWORD: deliverypassword
MYSQL_CHARACTER_SET_SERVER: 'utf8mb4'
MYSQL_COLLATION_SERVER: 'utf8mb4_unicode_ci'
ports:
- "3306:3306"
volumes:
- ./sql/init-delivery.sql:/docker-entrypoint-initdb.d/init.sql
networks:
default:
driver: bridge