-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
71 lines (64 loc) · 1.33 KB
/
docker-compose.yaml
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
version: '3.8'
services:
web:
image: 15cm/thanatosns
restart: unless-stopped
entrypoint: ["/init"]
env_file:
- ./docker-compose.env
depends_on:
- redis
- db
volumes:
- data-export:/data/thanatosns/export
ports:
- 3000:3000
celery:
image: 15cm/thanatosns
restart: unless-stopped
command: pdm run celery -A thanatosns worker -l INFO
env_file:
- ./docker-compose.env
depends_on:
- redis
- db
volumes:
- data-export:/data/thanatosns/export
flower:
image: 15cm/thanatosns
restart: unless-stopped
command: pdm run celery --broker=redis://redis:6379/1 flower
env_file:
- ./docker-compose.env
depends_on:
- redis
- task-worker
ports:
- 5555:5555
sh:
image: 15cm/thanatosns
profiles: ["admin"]
env_file:
- ./docker-compose.env
depends_on:
- redis
- db
redis:
image: redis:7.0.11
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
db:
image: postgres:15.3
restart: unless-stopped
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
environment:
- POSTGRES_PASSWORD=postgres
volumes:
data-export:
driver: local
driver_opts:
o: bind
type: none
device: /tmp/thanatosns