-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.23 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
53
54
55
56
57
58
59
60
version: "3.7"
networks:
proxy-shared:
external: true
thoth-internal:
driver: overlay
services:
db:
image: ankane/pgvector:latest
restart: always
environment:
POSTGRES_DB: thoth
POSTGRES_USER: root
POSTGRES_PASSWORD: secret
POSTGRES_HOST_AUTH_METHOD: trust
networks:
- thoth-internal
ports:
- 5432:5432
volumes:
- thoth_data:/var/lib/postgresql/data/
thothbackend:
image: ghcr.io/ubyssey/thoth:${BACKEND_TAG}
command:
- bash
- -c
- "python manage.py migrate && python manage.py crontab add && service cron start && python manage.py runserver 0.0.0.0:8000"
networks:
- proxy-shared
- thoth-internal
depends_on:
- db
stdin_open: true
tty: true
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
thothfrontend:
image: ghcr.io/ubyssey/thoth-frontend:${FRONTEND_TAG}
environment:
ORIGIN: https://thoth.ubyssey.ca
networks:
- proxy-shared
- thoth-internal
depends_on:
- thothbackend
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
volumes:
thoth_data: