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"