feat: initial commit
This commit is contained in:
commit
03ac720e13
2 changed files with 39 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.env
|
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: spliit
|
||||
|
||||
services:
|
||||
spliit:
|
||||
image: crazymax/spliit:1.15.0
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- target: 3000
|
||||
published: 3000
|
||||
protocol: tcp
|
||||
environment:
|
||||
- "TZ"
|
||||
- "POSTGRES_HOST=db"
|
||||
- "POSTGRES_PORT=5432"
|
||||
- POSTGRES_DB=${DC_SPLIIT_DB:-spliit}
|
||||
- POSTGRES_USER=${DC_SPLIIT_USER:-spliit}
|
||||
- POSTGRES_PASSWORD=${DC_SPLIIT_PASS:?}
|
||||
restart: always
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.spliit.rule=Host(`${DC_SPLIIT_HOSTNAME:?}`)"
|
||||
- "traefik.http.routers.spliit.entrypoints=websecure"
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
db:
|
||||
image: postgres:17.4@sha256:7f29c02ba9eeff4de9a9f414d803faa0e6fe5e8d15ebe217e3e418c82e652b35
|
||||
environment:
|
||||
- TZ=Europe/Zurich
|
||||
- POSTGRES_DB=${DC_SPLIIT_DB:-spliit}
|
||||
- POSTGRES_USER=${DC_SPLIIT_USER:-spliit}
|
||||
- POSTGRES_PASSWORD=${DC_SPLIIT_PASS:?}
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
Loading…
Add table
Add a link
Reference in a new issue