-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
28 lines (27 loc) · 934 Bytes
/
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
services:
lastfm_django-redis:
container_name: lastfm_django-redis
image: redis
restart: always
web:
container_name: lastfm_django
build: .
restart: always
command: bash -c "python manage.py migrate && gunicorn lastfm_django.wsgi --bind 0.0.0.0:8001 --timeout 600 & celery -A lastfm_django worker -l info"
volumes:
- .:/code
depends_on:
- lastfm_django-redis
labels:
- "traefik.enable=true"
- "traefik.http.routers.lastfm_django.entrypoints=secure"
- "traefik.http.routers.lastfm_django.rule=Host(`lastfm-tools.$DOMAIN`)"
- "traefik.http.services.lastfm_django.loadbalancer.server.port=8001"
- "traefik.http.routers.lastfm_django.tls.certresolver=le"
environment:
- REDIS_URL=redis://lastfm_django-redis:6379
- ALLOWED_HOSTS=$ALLOWED_HOSTS
networks:
default:
name: $DEFAULT_NETWORK
external: true