File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ version : " 3"
2+
3+ services :
4+ app_staging :
5+ image : " docker.pkg.github.com/codebuddies/backend/cb-backend:$CB_IMAGE_TAG"
6+ labels :
7+ - " traefik.http.routers.https_to_stage.rule=Host(`api-staging.codebuddies.org`)"
8+ - " traefik.http.routers.https_to_stage.tls=true"
9+ - " traefik.http.routers.https_to_stage.tls.certresolver=letsencrypt"
10+ - " traefik.http.routers.https_to_stage.entrypoints=https"
11+ - " traefik.http.routers.http_to_stage.rule=Host(`api-staging.codebuddies.org`)"
12+ - " traefik.http.routers.http_to_stage.entrypoints=http"
13+ container_name : staging-app
14+ restart : on-failure
15+ command : >
16+ sh -c "python /opt/cbv3_django_prototype/manage.py migrate &&
17+ uwsgi --ini /opt/cbv3_django_prototype/uwsgi.ini"
18+ environment :
19+ - DATABASE_URL=${DB_URL}
20+ - EMAIL_HOST=localhost
21+ - DJANGO_SETTINGS_MODULE=config.settings.production
22+ - DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
23+ - DJANGO_ADMIN_URL=admin/
24+ - DJANGO_ALLOWED_HOSTS=${DJANGO_ALLOWED_HOSTS}
25+ - DJANGO_SECURE_SSL_REDIRECT=True
26+ networks :
27+ - cb_staging
28+
29+ networks :
30+ cb_staging :
31+ external : true
You can’t perform that action at this time.
0 commit comments