Skip to content

Commit

Permalink
refactor: Add MySQL database service to docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PleBea committed Jul 16, 2024
1 parent 516d2f0 commit 4bbf3de
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,23 @@ services:
- 49000:3000
depends_on:
- redis
- db
redis:
image: 'redis:7.2.5'
db:
image: mysql:8.0
ports:
- '3306:3306'
environment:
TZ: Asia/Seoul
env_file:
- .env.db
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --range_optimizer_max_mem_size=16777216
restart: always
volumes:
- ./db/mysql/data:/var/lib/mysql
- ./db/mysql/init:/docker-entrypoint-initdb.d

0 comments on commit 4bbf3de

Please sign in to comment.