forked from BastiDood/drap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (54 loc) · 944 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (54 loc) · 944 Bytes
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
services:
www:
build: .
profiles:
- prod
restart: always
ports:
- 3000:3000
env_file:
- .env
healthcheck:
test: ['CMD-SHELL', 'wget -q0- http://localhost:3000/']
interval: 10s
timeout: 30s
retries: 5
start_period: 10s
db:
build: ./docker/postgres
profiles:
- dev
- prod
restart: always
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test:
- CMD
- pg_isready
interval: 1s
timeout: 5s
retries: 10
env_file:
- .env
redis:
image: redis:8.0.3-alpine
profiles:
- dev
- prod
restart: always
volumes:
- redis:/data
ports:
- 6379:6379
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 30s
retries: 5
start_period: 10s
volumes:
postgres:
redis: