mirror of
https://codeberg.org/dribdat/dribdat.git
synced 2026-03-25 05:23:36 +00:00
Docker compose example
This commit is contained in:
parent
d5ac5b0a88
commit
05eec9b3ea
2 changed files with 4 additions and 27 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue