Docker compose example

This commit is contained in:
Oleg Lavrovsky 2025-02-03 22:26:53 +01:00
commit 05eec9b3ea
No known key found for this signature in database
GPG key ID: 31E523030632FF4B
2 changed files with 4 additions and 27 deletions

View file

@ -1,10 +1,12 @@
services:
dribdat:
image: dribdat/dribdat
container_name: dribdat-web
restart: unless-stopped
ports:
- 5000:5000
- 5123:5000
environment:
- SERVER_URL=localhost.changeme:5000
- SERVER_URL=localhost.changeme:5123
- DATABASE_URL=postgres://dribdat_user:changeme@db:5432/dribdat
- DRIBDAT_ENV=prod
- DRIBDAT_SECRET=changeme

View file

@ -1,25 +0,0 @@
services:
dribdat:
image: dribdat
build:
context: .
dockerfile: ./Dockerfile
ports:
- 5000:5000
environment:
- SERVER_URL=localhost.changeme:5000
- DATABASE_URL=postgres://dribdat_user:changeme@db:5432/dribdat
- DRIBDAT_ENV=prod
- DRIBDAT_SECRET=changeme
- DRIBDAT_APIKEY=changeme
- TIME_ZONE=Europe/Zurich
depends_on:
- db
db:
image: postgres
volumes:
- ./.db:/var/lib/postgresql/data
environment:
- POSTGRES_DB=dribdat
- POSTGRES_USER=dribdat_user
- POSTGRES_PASSWORD=changeme