-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 894 Bytes
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
version: '3'
services:
# PostgreSQL databases only
postgres-service1:
image: postgres:latest
container_name: postgres-service1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: user_service_db
ports:
- "5432:5432"
volumes:
- postgres-service1-data:/var/lib/postgresql/data
command:
- "postgres"
- "-c"
- "max_prepared_transactions=100"
postgres-service2:
image: postgres:latest
container_name: postgres-service2
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: order_service_db
ports:
- "5433:5432"
volumes:
- postgres-service2-data:/var/lib/postgresql/data
command:
- "postgres"
- "-c"
- "max_prepared_transactions=100"
volumes:
postgres-service1-data:
postgres-service2-data: