From 3c06caa7082bfc24aa5ecef2adecea3c55c14db6 Mon Sep 17 00:00:00 2001 From: Kyongmin1016 Date: Wed, 13 Sep 2023 14:18:00 +0900 Subject: [PATCH] Fix:update docker-compose --- Android | 2 +- docker-compose.yml | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/Android b/Android index f26eb9c..2ff1450 160000 --- a/Android +++ b/Android @@ -1 +1 @@ -Subproject commit f26eb9c4d641b3c33fe2fce00b405655f5949370 +Subproject commit 2ff1450cbe0c0225fc45f1bf4a50954b7f8be081 diff --git a/docker-compose.yml b/docker-compose.yml index 53f348b..9bcc339 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,8 @@ services: TZ: Asia/Seoul volumes: - mysql-data:/var/lib/mysql + networks: + - backend_network command: - '--character-set-server=utf8mb4' - '--collation-server=utf8mb4_unicode_ci' @@ -23,6 +25,10 @@ services: image: "redis:latest" ports: - "6379:6379" + volumes: + - redis-data:/var/lib/redis + networks: + - backend_network database-adminer: container_name: tott-db-adminer @@ -33,7 +39,27 @@ services: - ADMINER_DEFAULT_SERVER=db-mysql - ADMINER_DESIGN=hydra - ADMINER_PLUGINS=tables-filter tinymce + networks: + - backend_network + + backend: + container_name: ttot-backend + build: ./Backend + restart: always + ports: + - "8080:8080" + environment: + SPRING_DATASOURCE_URL: jdbc:mysql://tott-mysql:3306/tott + SPRING_DATASOURCE_USERNAME: ${MYSQL_USER} + SPRING_DATASOURCE_PASSWORD: ${SPRING_DATASOURCE_PASSWORD} + SPRING_JPA_HIBERNATE_DDL_AUTO: update + networks: + - backend_network + +networks: + backend_network: + driver: bridge volumes: mysql-data: - mongo-data: \ No newline at end of file + redis-data: \ No newline at end of file