chore: improved docker container names

This commit is contained in:
Ward Truyen 2024-09-08 21:55:17 +02:00
parent f32dfde28a
commit cd5a5233a5
2 changed files with 6 additions and 3 deletions

View File

@ -1,17 +1,19 @@
services:
tdsdb:
image: mariadb
container_name: tds-db
restart: always
environment:
- MARIADB_ROOT_PASSWORD=lolpol
- MARIADB_USER=ward
- MARIADB_PASSWORD=lolpol
- MARIADB_DATABASE=family
ports:
- "3306:3306"
# ports:
# - "3306:3306"
tdsfront:
build: front
container_name: tds-web
labels:
- "traefik.http.routers.tdsfront.rule=Host(`tds.truyen.network`) && PathPrefix(`/`)"
- "traefik.http.routers.tdsfront.entrypoints=websecure"
@ -21,6 +23,7 @@ services:
tdsback:
build: back
container_name: tds-api
depends_on:
- tdsdb
labels:

View File

@ -19,4 +19,4 @@ build:
chmod a+x ./back/target/*.jar
deploy:
docker compose up -d --build
docker compose up -d --build --remove-orphans