38 lines
No EOL
951 B
YAML
38 lines
No EOL
951 B
YAML
services:
|
|
web:
|
|
build: .
|
|
command: ["django-admin", "runserver", "0.0.0.0:8000"]
|
|
ports:
|
|
- 8000:8000
|
|
restart: always
|
|
volumes:
|
|
- ./seed:/seed:ro
|
|
# DANGEROUS DUE TO DOCKERFILE PACKAGE BUILDING/INSTALLATION
|
|
#- ./src/pkmntrade_club:/app/lib/python3.12/site-packages/pkmntrade_club:ro
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- DEBUG=true
|
|
- PUBLIC_HOST=localhost
|
|
- ALLOWED_HOSTS=127.0.0.1,localhost
|
|
- DISABLE_CACHE=false
|
|
# depends_on:
|
|
# db:
|
|
# condition: service_healthy
|
|
# db:
|
|
# image: postgres:16
|
|
# restart: always
|
|
# ports:
|
|
# - 5432:5432
|
|
# volumes:
|
|
# - postgres_data:/var/lib/postgresql/data/
|
|
# environment:
|
|
# - "POSTGRES_HOST_AUTH_METHOD=trust"
|
|
# healthcheck:
|
|
# test: ["CMD", "pg_isready", "-U", "postgres", "-d", "postgres"]
|
|
# interval: 10s
|
|
# timeout: 5s
|
|
# retries: 5
|
|
|
|
# volumes:
|
|
# postgres_data: |