mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-04-21 22:28:57 +00:00
Added docker for production
This commit is contained in:
parent
76a09ca3ce
commit
569c2ffe79
0
config/nginx/server.conf
Normal file
0
config/nginx/server.conf
Normal file
40
docker-compose-pro.yml
Normal file
40
docker-compose-pro.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres
|
||||||
|
volumes:
|
||||||
|
- dbdata:/var/lib/postgresql/data
|
||||||
|
env_file:
|
||||||
|
- config/db/databasepostgresql_env
|
||||||
|
|
||||||
|
rabbitmq:
|
||||||
|
image: rabbitmq
|
||||||
|
|
||||||
|
django:
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- DJANGO_SETTINGS_MODULE=config.settings.production
|
||||||
|
build: .
|
||||||
|
command: gunicorn --chdir src --bind 0.0.0.0:8000 config.wsgi
|
||||||
|
ports:
|
||||||
|
- "8000:8000"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- rabbitmq
|
||||||
|
volumes:
|
||||||
|
- static_volume:/django_static
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
image: nginx
|
||||||
|
ports:
|
||||||
|
- "80:8080"
|
||||||
|
volumes:
|
||||||
|
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
|
- static_volume:/django_static
|
||||||
|
depends_on:
|
||||||
|
- django
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
dbdata:
|
||||||
|
static_volume:
|
@ -28,7 +28,7 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
image: nginx
|
image: nginx
|
||||||
ports:
|
ports:
|
||||||
- "80:8080"
|
- "1337:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
|
- ./config/nginx/local.conf:/etc/nginx/conf.d/default.conf:ro
|
||||||
- static_volume:/django_static
|
- static_volume:/django_static
|
||||||
|
Loading…
x
Reference in New Issue
Block a user