-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (50 loc) · 1.04 KB
/
docker-compose.yml
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
version: "3.8"
services:
nestjs:
container_name: uniscan-nestjs
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks:
- sub-etha
frontend:
container_name: uniscan-frontend
depends_on:
- nestjs
networks:
- sub-etha
postgres:
container_name: uniscan-postgres
image: postgres:13
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- sub-etha
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
container_name: uniscan-redis
image: redis:6
volumes:
- redis_data:/data
networks:
- sub-etha
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
redis_data:
networks:
sub-etha: