-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 1.03 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
services:
tuberank:
container_name: tuberank
build:
context: .
args:
DOCKER_BUILDKIT: 1
volumes:
- .:/code
restart: unless-stopped
command: >
sh -c "npm run tailwind-build &&
python /code/manage.py migrate &&
gunicorn --bind :8000 --workers 1 tuberank.wsgi"
ports:
- "8000:8000"
environment:
- DATABASE_URL=${DATABASE_URL}
- YOUTUBE_DEVELOPER_KEY=${YOUTUBE_DEVELOPER_KEY}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
- DEBUG=${DEBUG}
- LOCAL_DEPLOY=${LOCAL_DEPLOY}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
- CSRF_TRUSTED_ORIGINS=${CSRF_TRUSTED_ORIGINS}
labels:
- "traefik.enable=true"
- "traefik.http.routers.tuberank.entrypoints=secure"
- "traefik.http.routers.tuberank.rule=Host(`tuberank.${DOMAIN}`)"
- "traefik.http.services.tuberank.loadbalancer.server.port=8000"
- "traefik.http.routers.tuberank.tls.certresolver=le"
networks:
default:
name: ${DEFAULT_NETWORK}
external: true