Initial commit

This commit is contained in:
2024-08-04 11:03:32 +02:00
commit 71a9e7a6dd
13 changed files with 353 additions and 0 deletions

31
compose.yml Normal file
View File

@@ -0,0 +1,31 @@
services:
tdsfront:
build: front
labels:
- "traefik.http.routers.tdsfront.rule=Host(`tds.truyen.network`) && PathPrefix(`/`)"
- "traefik.http.routers.tdsfront.entrypoints=websecure"
- "traefik.http.routers.tdsfront.tls=true"
- "traefik.http.routers.tdsfront.tls.certresolver=myresolver"
- "traefik.enable=true"
tdsback:
build: back
depends_on:
- tdsdb
labels:
- "traefik.http.routers.tdsback.rule=Host(`tds.truyen.network`) && PathPrefix(`/api`)"
- "traefik.http.routers.tdsback.entrypoints=websecure"
- "traefik.http.routers.tdsback.tls=true"
- "traefik.http.routers.tdsback.tls.certresolver=myresolver"
- "traefik.enable=true"
tdsdb:
image: mariadb
restart: always
environment:
- MARIADB_ROOT_PASSWORD=lolpol
- MARIADB_USER=ward
- MARIADB_PASSWORD=lolpol
- MARIADB_DATABASE=family
ports:
- "3306:3306"