initial commit
All checks were successful
Build and Push Image / build-and-push (push) Successful in 1m26s
All checks were successful
Build and Push Image / build-and-push (push) Successful in 1m26s
This commit is contained in:
parent
3bba1f6db6
commit
b56e866071
36 changed files with 4160 additions and 0 deletions
44
docker-compose.yml
Normal file
44
docker-compose.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- FLASK_ENV=development
|
||||
- DATABASE_URL=sqlite:///app/data/snauw_counter.db
|
||||
- SECRET_KEY=development-secret-key-not-for-production
|
||||
volumes:
|
||||
- ./app:/app/app
|
||||
- ./migrations:/app/migrations
|
||||
- sqlite_data:/app/data
|
||||
command: flask run --host=0.0.0.0 --port=5000 --debug
|
||||
|
||||
# Optional PostgreSQL for future use
|
||||
# db:
|
||||
# image: postgres:15-alpine
|
||||
# environment:
|
||||
# - POSTGRES_DB=snauw_counter
|
||||
# - POSTGRES_USER=snauw_user
|
||||
# - POSTGRES_PASSWORD=snauw_pass
|
||||
# ports:
|
||||
# - "5432:5432"
|
||||
# volumes:
|
||||
# - postgres_data:/var/lib/postgresql/data
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "pg_isready -U snauw_user -d snauw_counter"]
|
||||
# interval: 10s
|
||||
# timeout: 5s
|
||||
# retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
volumes:
|
||||
sqlite_data:
|
||||
redis_data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue