-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0f03a1
commit 48cdb02
Showing
4 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
version: "3.5" | ||
services: | ||
web: | ||
build: . | ||
container_name: pycontw-2023-ansible | ||
image: pycontw-2023_web-ansible | ||
hostname: pycontw-2023 | ||
entrypoint: "" | ||
command: | ||
# Hacky script for quick demonstration purpose | ||
- bash | ||
- -c | ||
- | | ||
set -o errexit -o nounset -o pipefail | ||
python3 manage.py compilemessages | ||
python3 manage.py migrate | ||
python3 manage.py collectstatic --no-input | ||
exec uwsgi --http-socket :8000 \ | ||
--master \ | ||
--hook-master-start "unix_signal:15 gracefully_kill_them_all" \ | ||
--static-map /static=assets \ | ||
--static-map /media=media \ | ||
--mount /prs=pycontw2016/wsgi.py \ | ||
--manage-script-name \ | ||
--offload-threads 2 | ||
restart: always | ||
environment: | ||
# Save us from having to type `--setting=pycontw2016.settings.production` | ||
DJANGO_SETTINGS_MODULE: pycontw2016.settings.production.pycontw2023 | ||
SCRIPT_NAME: /prs | ||
SECRET_KEY: ${SECRET_KEY} | ||
DATABASE_URL: ${DATABASE_URL} | ||
EMAIL_URL: ${EMAIL_URL} | ||
DSN_URL: ${DSN_URL} | ||
GTM_TRACK_ID: ${GTM_TRACK_ID} | ||
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL} | ||
|
||
volumes: | ||
- ${MEDIA_ROOT}:/usr/local/app/src/media | ||
networks: | ||
- network | ||
|
||
networks: | ||
network: | ||
external: true | ||
name: network-2023 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters