-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
81 lines (74 loc) · 1.38 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
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
version: "3.8"
services:
agency:
build: agency
ports:
- 8000:80
volumes:
- ./agency:/usr/src/app
networks:
- curieo_db
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
server:
build: server
restart: always
ports:
- 3030:3030
networks:
- curieo_db
volumes:
- ./server:/usr/src/app
depends_on:
db:
condition: service_healthy
cache:
condition: service_healthy
frontend:
build: frontend
restart: always
ports:
- 3000:3000
networks:
- curieo_db
volumes:
- ./frontend:/usr/src/app
db:
image: postgres:16-alpine
ports:
- 5432:5432/tcp
networks:
curieo_db:
aliases:
- curieo_db
volumes:
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=aact
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
cache:
image: redis:alpine
ports:
- 6379:6379/tcp
networks:
curieo_db:
aliases:
- curieo_cache
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
db_data:
networks:
curieo_db: