initial commit

This commit is contained in:
straitz 2025-08-15 00:46:18 +09:00
commit c6961c03c3
33 changed files with 1782 additions and 0 deletions

61
docker-compose.yml Normal file
View file

@ -0,0 +1,61 @@
services:
db:
image: postgres:14
environment:
POSTGRES_DB: mydb
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypass
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app_network
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- app_network
web:
build: .
command: daphne -b 0.0.0.0 -p 8000 stratoflights.asgi:application
environment:
DJANGO_SETTINGS_MODULE: stratoflights.settings
ports:
- "8000:8000"
volumes:
- ./static:/static:rw
- ./media:/media:rw
env_file: .env
depends_on:
- db
networks:
- app_network
nginx:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./static:/var/www/static
- ./media:/var/www/media
depends_on:
- web
networks:
- app_network
volumes:
redis_data:
postgres_data:
static_volume:
media_volume:
networks:
app_network:
driver: bridge