-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
104 lines (98 loc) · 2.24 KB
/
docker-compose.yaml
File metadata and controls
104 lines (98 loc) · 2.24 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
services:
# ───── Shared PostgreSQL ─────
postgres:
image: postgres:15
container_name: postgres
restart: always
environment:
POSTGRES_DB: repeatro
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
# ───── Card Service ─────
card:
build:
context: ./card
dockerfile: Dockerfile
container_name: card-service
env_file:
- ./card/.env
volumes:
- ./card/config:/app/config
- ./card/.env:/app/.env
depends_on:
- postgres
- sso
- stat
ports:
- "${CARD_HOST_PORT}:${CARD_CONTAINER_PORT}"
# ───── Deck Service ─────
deck:
build:
context: ./deck
dockerfile: Dockerfile
container_name: deck-service
env_file:
- ./deck/.env
volumes:
- ./deck/config:/app/config
- ./deck/.env:/app/.env
depends_on:
- postgres
ports:
- "${DECK_HOST_PORT}:${DECK_CONTAINER_PORT}"
# ───── Repeatro Service ─────
repeatro:
build:
context: ./repeatro
dockerfile: Dockerfile
container_name: repeatro-service
env_file:
- ./repeatro/.env
volumes:
- ./repeatro/config:/app/config
- ./repeatro/.env:/app/.env
depends_on:
- postgres
- sso
- card
- deck
- stat
ports:
- "${REPEATRO_HOST_PORT}:${REPEATRO_CONTAINER_PORT}"
# ───── SSO Service ─────
sso:
build:
context: ./sso
dockerfile: Dockerfile
container_name: sso-service
env_file:
- ./sso/.env
volumes:
- ./sso/config:/app/config
- ./sso/.env:/app/.env
depends_on:
- postgres
ports:
- "${SSO_HOST_PORT}:${SSO_CONTAINER_PORT}"
# ───── Stats Service ─────
stat:
build:
context: ./stats
dockerfile: Dockerfile
container_name: stat-service
env_file:
- ./stats/.env
volumes:
- ./stats/config:/app/config
- ./stats/.env:/app/.env
depends_on:
- postgres
- sso
ports:
- "${STAT_HOST_PORT}:${STAT_CONTAINER_PORT}"
volumes:
postgres_data: