-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (58 loc) · 1.12 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
services:
anime_quiz:
build:
context: .
networks:
- anime_quiz
- server
ports:
- 8009:8009
depends_on:
redis:
condition: service_healthy
tasks:
condition: service_started
volumes:
- ./static:/usr/src/app/static:rw
restart: unless-stopped
environment:
- DJANGO_SETTINGS_MODULE=anime_quiz.settings_prod
env_file:
- .env
tasks:
build:
context: .
command: python -m quiz.tasks
networks:
- anime_quiz
depends_on:
redis:
condition: service_healthy
environment:
- DJANGO_SETTINGS_MODULE=anime_quiz.settings_prod
restart: unless-stopped
healthcheck:
disable: true
env_file:
- .env
redis:
image: valkey/valkey:8.0
command:
- "valkey-server"
- "--appendonly"
- "yes"
- "--appendfsync"
- "everysec"
volumes:
- redis_data:/data
networks:
- anime_quiz
healthcheck:
test: redis-cli ping | grep PONG
restart: unless-stopped
networks:
server:
external: true
anime_quiz:
volumes:
redis_data: