-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (68 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
71 lines (68 loc) · 1.79 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.8'
services:
postgresql_order:
image: 'bitnami/postgresql:latest'
networks:
- postgres_network
environment:
- POSTGRESQL_USERNAME=order
- POSTGRESQL_PASSWORD=order
- POSTGRESQL_DATABASE=order
- POSTGRESQL_ROOT_PASSWORD=rootpassword
ports:
- "25434:5432"
postgresql_auth:
image: 'bitnami/postgresql:latest'
networks:
- postgres_network
environment:
- POSTGRESQL_USERNAME=auth
- POSTGRESQL_PASSWORD=auth
- POSTGRESQL_DATABASE=auth
- POSTGRESQL_ROOT_PASSWORD=rootpassword
ports:
- "25435:5432"
postgresql_company:
image: 'bitnami/postgresql:latest'
networks:
- postgres_network
environment:
- POSTGRESQL_USERNAME=company
- POSTGRESQL_PASSWORD=company
- POSTGRESQL_DATABASE=company
- POSTGRESQL_ROOT_PASSWORD=rootpassword
ports:
- "25436:5432"
postgresql_hub:
image: 'bitnami/postgresql:latest'
networks:
- postgres_network
environment:
- POSTGRESQL_USERNAME=hub
- POSTGRESQL_PASSWORD=hub
- POSTGRESQL_DATABASE=hub
- POSTGRESQL_ROOT_PASSWORD=rootpassword
ports:
- "25437:5432"
postgresql_message:
image: 'bitnami/postgresql:latest'
networks:
- postgres_network
environment:
- POSTGRESQL_USERNAME=message
- POSTGRESQL_PASSWORD=message
- POSTGRESQL_DATABASE=message
- POSTGRESQL_ROOT_PASSWORD=rootpassword
ports:
- "25438:5432"
redis:
image: 'redis:latest' # Redis 이미지 사용
hostname: redis
command: redis-server --requirepass systempass --port 6379
networks:
- postgres_network # 동일 네트워크 사용
ports:
- "25439:6379" # 바인딩할 포트:내부 포트
networks:
postgres_network:
driver: bridge