Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
anthologia-site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ecrinum
anthologia
anthologia-site
Commits
e27e6015
Commit
e27e6015
authored
3 years ago
by
Tim G
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted Docker files for production setup
parent
d9ba01a2
No related branches found
Branches containing commit
Tags
0.4.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.prod.yml
+9
-4
9 additions, 4 deletions
docker-compose.prod.yml
docker/start_antholont.sh
+2
-1
2 additions, 1 deletion
docker/start_antholont.sh
with
11 additions
and
5 deletions
docker-compose.prod.yml
+
9
−
4
View file @
e27e6015
...
...
@@ -7,6 +7,7 @@ services:
restart
:
always
volumes
:
-
./initdb:/docker-entrypoint-initdb.d
-
./persistent_db:/var/lib/postgresql
networks
:
-
default
environment
:
...
...
@@ -15,6 +16,7 @@ services:
POSTGRES_PASSWORD
:
password
http
:
container_name
:
ap_http
restart
:
always
image
:
nginx
volumes
:
-
./docker/nginx.conf:/etc/nginx/conf.d/default.conf
...
...
@@ -23,13 +25,16 @@ services:
-
traefik
labels
:
-
'
traefik.enable=true'
-
'
traefik.backend=
web
'
-
'
traefik.port=80
00
'
-
'
traefik.backend=
ap_http
'
-
'
traefik.port=80'
-
'
traefik.docker.network=traefik_net'
-
'
traefik.frontend.rule=Host:
antholont
.ecrituresnumeriques.ca'
-
'
traefik.frontend.rule=Host:
prod-ap
.ecrituresnumeriques.ca'
app
:
container_name
:
ap_python
image
:
timoguic/antholont
restart
:
always
image
:
timoguic/antholont:stable
environment
:
-
DJANGO_SETTINGS_MODULE=anthology.settings.prod
depends_on
:
-
db
networks
:
...
...
This diff is collapsed.
Click to expand it.
docker/start_antholont.sh
+
2
−
1
View file @
e27e6015
#!/bin/bash
cd
/code
||
exit
set
-ex
cd
/code
python manage.py migrate
python manage.py compilemessages
python
-m
gunicorn
-b
0.0.0.0:8000 anthology.wsgi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment