setup nginx docker
This commit is contained in:
@@ -1,10 +1,22 @@
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
build: ./web
|
||||
command: gunicorn bartool_ovh.wsgi:application --bind 0.0.0.0:8000
|
||||
volumes:
|
||||
- ./app/:/usr/src/app/
|
||||
ports:
|
||||
- 8100:8000
|
||||
- ./app/:/home/app/web
|
||||
expose:
|
||||
- 8000
|
||||
env_file:
|
||||
- ./env.dev
|
||||
- ./web/env.dev
|
||||
|
||||
nginx:
|
||||
build: ./nginx
|
||||
volumes:
|
||||
- static_volume:/home/app/web/staticfiles
|
||||
ports:
|
||||
- 1337:80
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
volumes:
|
||||
static_volume:
|
||||
|
||||
Reference in New Issue
Block a user