mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
17 lines
639 B
YAML
17 lines
639 B
YAML
version: "3"
|
|
|
|
services:
|
|
db:
|
|
image: postgres
|
|
web:
|
|
build: .
|
|
# command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py loaddata villafleurie.json && python manage.py runserver 0.0.0.0:8000"
|
|
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py loaddata villafleurie.json && gunicorn villafleurie.wsgi -b 0.0.0.0:8000"
|
|
# command: gunicorn villafleurie.wsgi -b 0.0.0.0:8000 # Production server more secure
|
|
container_name: villafleurie
|
|
volumes:
|
|
- .:/villafleurie
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|