39 lines
1.9 KiB
YAML

services:
tdsdb:
image: mariadb
container_name: tds-db
restart: always
environment:
- MARIADB_ROOT_PASSWORD=lolpol
- MARIADB_USER=ward
- MARIADB_PASSWORD=lolpol
- MARIADB_DATABASE=family
volumes:
- /data/tds/mariadb:/var/lib/mysql
# ports:
# - "3306:3306"
tdsfront:
build: front
container_name: tds-web
restart: always
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
container_name: tds-api
restart: always
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"