Initial: Pokedexter TCG-Collector webapp
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
container_name: pokedexter-db
|
||||
environment:
|
||||
POSTGRES_DB: pokedexter
|
||||
POSTGRES_USER: pokedexter
|
||||
POSTGRES_PASSWORD: pokedexter_secret
|
||||
volumes:
|
||||
- pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U pokedexter"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
backend:
|
||||
image: pokedexter-backend
|
||||
build: ./backend
|
||||
container_name: pokedexter-backend
|
||||
environment:
|
||||
DATABASE_URL: "postgresql+asyncpg://pokedexter:pokedexter_secret@db/pokedexter"
|
||||
SECRET_KEY: "${SECRET_KEY:-skift-mig-til-en-sikker-noegle}"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
nginx:
|
||||
image: pokedexter-nginx
|
||||
build: ./nginx
|
||||
container_name: pokedexter-nginx
|
||||
ports:
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
volumes:
|
||||
pgdata:
|
||||
Reference in New Issue
Block a user