-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.43 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
name: dp_algebra
services:
frontend:
image: ghcr.io/jimmyl0l3c/dp_algebra-app:latest
build: ./flutter_app
container_name: algebra_app
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.flutter.rule=Host(`algebra.joska.dev`)"
- "traefik.http.routers.flutter.tls=true"
- "traefik.http.routers.flutter.tls.certresolver=letsencrypt"
api:
image: ghcr.io/jimmyl0l3c/dp_algebra-api:latest
build: ./backend
container_name: algebra_api
restart: unless-stopped
volumes:
- backend_user_data:/home/app/web/user_files/:z
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/algebra_db
- DJANGO_ALLOWED_HOSTS=.joska.dev
- DJANGO_SECRET_KEY
- DJANGO_DEBUG=False
depends_on:
- db
labels:
- "traefik.enable=true"
- "traefik.http.routers.django.rule=Host(`algebra2.joska.dev`)"
- "traefik.http.routers.django.tls=true"
- "traefik.http.routers.django.tls.certresolver=letsencrypt"
db:
image: postgres:15-alpine
container_name: algebra_db
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB=algebra_db
volumes:
postgres_data:
backend_user_data:
networks:
default:
name: traefik_default
external: true