Added docker to environment

This commit is contained in:
Cal Corum 2024-10-12 02:04:30 -05:00
parent 9dda254421
commit aa66008577
3 changed files with 59 additions and 1 deletions

35
.dockerignore Normal file
View File

@ -0,0 +1,35 @@
**/__pycache__
**/.venv
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
**/.idea*
**/.pytest_cache
**/migrations
**/venv
**/tests
**/storage
*_legacy.py

View File

@ -1,4 +1,4 @@
FROM python:3.8-slim
FROM python:3.12-slim
WORKDIR /usr/src/app

23
docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: '3'
services:
discord-app:
image: paper-dynasty-discordapp:sqlmodel-rebuild
restart: unless-stopped
volumes:
- /home/cal/Development/paper-dynasty/dev-storage:/usr/src/app/storage
- /home/cal/Development/paper-dynasty/dev-logs:/usr/src/app/logs
environment:
- PYTHONBUFFERED=0
- GUILD_ID=669356687294988350
- BOT_TOKEN=NzExNjQ5NTU3NTQ0NDM1ODAz.XwTFzg.__v1TkyNNyeYhLG8SRwRaqYnVZw
# - API_TOKEN=Vv$r&d2Le284gm9p
- LOG_LEVEL=INFO
- API_TOKEN=Tp3aO3jhYve5NJF1IqOmJTmk
- SCOREBOARD_CHANNEL=1000521215703789609
- TZ=America/Chicago
- PYTHONHASHSEED=1749583062
networks:
backend:
driver: bridge