-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yaml
More file actions
143 lines (131 loc) · 2.83 KB
/
Copy pathdocker-compose-dev.yaml
File metadata and controls
143 lines (131 loc) · 2.83 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
version: '3.8'
services:
photo-svc:
image: ghcr.io/hervibest/photo-svc:${APP_VERSION}
env_file:
- .env.photo.development
ports:
- "8001:8001"
networks:
- backend
depends_on:
- postgres
- consul
- nats
transaction-svc:
image: ghcr.io/hervibest/transaction-svc:${APP_VERSION}
env_file:
- .env.transaction.development
ports:
- "8005:8005"
networks:
- backend
depends_on:
- redis
- postgres
- consul
- nats
upload-svc:
image: ghcr.io/hervibest/upload-svc:${APP_VERSION}
env_file:
- .env.upload.development
ports:
- "8002:8002"
networks:
- backend
depends_on:
- minio
- consul
- nats
user-svc:
image: ghcr.io/hervibest/user-svc:${APP_VERSION}
env_file:
- .env.user.development
volumes:
- ./user-svc/serviceAccountKey.json:/app/serviceAccountKey.json
environment:
GOOGLE_APPLICATION_CREDENTIALS: /app/serviceAccountKey.json
ports:
- "8003:8003"
networks:
- backend
depends_on:
- redis
- postgres
- consul
- nats
notification-svc:
image: ghcr.io/hervibest/notification-svc:${APP_VERSION}
env_file:
- .env.notification.development
volumes:
- ./notification-svc/serviceAccountKey.json:/app/serviceAccountKey.json
environment:
GOOGLE_APPLICATION_CREDENTIALS: /app/serviceAccountKey.json
ports:
- "8004:8004"
networks:
- backend
depends_on:
- redis
- postgres
- consul
- nats
redis:
image: redis:7.2-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
restart: unless-stopped
networks:
- backend
expose:
- "6379"
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
networks:
- backend
expose:
- "5432"
minio:
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
networks:
- backend
nats:
image: nats:2.11.2-alpine
ports:
- "4222:4222"
- "8222:8222"
networks:
- backend
command: ["-js", "-m", "8222"]
consul:
image: hashicorp/consul:1.20.6
ports:
- "8500:8500"
command: "agent -dev -client=0.0.0.0"
networks:
- backend
networks:
backend:
name: backend
driver: bridge
volumes:
pgdata:
minio-data: