-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
53 lines (47 loc) · 925 Bytes
/
docker-compose.yaml
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
version: '3'
services:
auth:
image: ${REGISTRY}/${IMAGE_NAME}:${TAG_NAME}
env_file:
- .env
ports:
- ${GRPC_PORT}:50051
networks:
- dmz
- ins
depends_on:
- auth-pg
- auth-migrator
auth-pg:
image: postgres:16-alpine3.19
env_file:
- .env
ports:
- 5432:5432
volumes:
- ./pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER} "]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
networks:
- ins
auth-migrator:
image: cr.selcloud.ru/practice/migrator:latest
env_file:
- .env
volumes:
- ./auth-service/migrations:/go/bin/migrations
restart: on-failure
networks:
- ins
depends_on:
- auth-pg
volumes:
pg-data:
networks:
dmz:
ins: