mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-30 05:01:05 +02:00
37 lines
654 B
YAML
37 lines
654 B
YAML
version: '3'
|
|
|
|
volumes:
|
|
db_data:
|
|
|
|
services:
|
|
db:
|
|
image: postgres
|
|
environment:
|
|
- "POSTGRES_DB=${POSTGRES_DB}"
|
|
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data/
|
|
|
|
web:
|
|
build: .
|
|
command: ./run.sh
|
|
volumes:
|
|
- .:/code
|
|
ports:
|
|
- 8000:8000
|
|
environment:
|
|
- "DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}"
|
|
- "DJANGO_DEBUG=${DJANGO_DEBUG}"
|
|
- "DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}"
|
|
depends_on:
|
|
- db
|
|
|
|
nginx:
|
|
build: ./nginx
|
|
ports:
|
|
- 80:80
|
|
depends_on:
|
|
- web
|
|
volumes:
|
|
- ./static:/home/app/web/static
|