setup nginx docker

This commit is contained in:
2024-11-24 19:11:41 +00:00
parent d3a01fe93d
commit 16b4b6fcad
6 changed files with 68 additions and 18 deletions

View File

@@ -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: