-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
52 lines (48 loc) · 1.11 KB
/
compose.yaml
File metadata and controls
52 lines (48 loc) · 1.11 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
services:
db:
container_name: db
image: postgres:15
env_file:
- .env
volumes:
- memo_postgres:/var/lib/postgresql/data
- ./db:/docker-entrypoint-initdb.d/
networks:
- memo_net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
restart: always
red:
container_name: red
image: redis
volumes:
- memo_redis:/data
networks:
- memo_net
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
restart: always
memo_main:
build: .
depends_on:
- db
- red
env_file:
- .env
networks:
- memo_net
restart: always
volumes:
memo_postgres:
name: memo_postgres
memo_redis:
name: memo_redis
networks:
memo_net:
name: memo_net