added nginx as a proxy. Still need to enable ssl.
This commit is contained in:
14
.docker-compose-files/compose.check.yaml
Normal file
14
.docker-compose-files/compose.check.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
web:
|
||||
command: python manage.py check --deploy
|
||||
restart: "no"
|
||||
env_file:
|
||||
- path: .env.template
|
||||
required: true
|
||||
|
||||
|
||||
db:
|
||||
env_file:
|
||||
- path: .env.template
|
||||
required: true
|
||||
|
||||
18
.docker-compose-files/compose.dev.yaml
Normal file
18
.docker-compose-files/compose.dev.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
web:
|
||||
command: gunicorn -b 0.0.0.0:8000 website.wsgi:application
|
||||
volumes:
|
||||
- ./src:/src
|
||||
env_file:
|
||||
- path: .env.template
|
||||
required: true
|
||||
- path: .env
|
||||
required: false
|
||||
|
||||
db:
|
||||
env_file:
|
||||
- path: .env.template
|
||||
required: true
|
||||
- path: .env
|
||||
required: false
|
||||
|
||||
10
.docker-compose-files/compose.prod.yaml
Normal file
10
.docker-compose-files/compose.prod.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
web:
|
||||
env_file:
|
||||
- path: .env
|
||||
required: true
|
||||
|
||||
db:
|
||||
env_file:
|
||||
- path: .env
|
||||
required: true
|
||||
14
.docker-compose-files/compose.test.yaml
Normal file
14
.docker-compose-files/compose.test.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
web:
|
||||
command: python manage.py check --deploy; python -Wa manage.py test --noinput --parallel
|
||||
restart: "no"
|
||||
env_file:
|
||||
- path: .env.template
|
||||
required: true
|
||||
|
||||
|
||||
db:
|
||||
env_file:
|
||||
- path: .env.template
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user