diff --git a/compose.yml b/compose.yml index baf59cf..6525c4a 100644 --- a/compose.yml +++ b/compose.yml @@ -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: diff --git a/makefile b/makefile index 84cab2f..b70aa19 100644 --- a/makefile +++ b/makefile @@ -19,4 +19,4 @@ build: chmod a+x ./back/target/*.jar deploy: - docker compose up -d --build + docker compose up -d --build --remove-orphans