Skip to content

Commit

Permalink
Upgrade docker-compose to use v3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
austek committed Nov 11, 2023
1 parent 0986522 commit 9dbf4af
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions complete/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
mysql:
image: mysql
ports:
- "3306:3306"
expose:
- "3306"
environment:
- MYSQL_USER=springuser
- MYSQL_PASSWORD=ThePassword
- MYSQL_DATABASE=db_example
- MYSQL_ROOT_PASSWORD=root
volumes:
- "./conf.d:/etc/mysql/conf.d:ro"
version: '3.8'

services:
db:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: db_example
MYSQL_USER: springuser
MYSQL_PASSWORD: ThePassword
ports:
- "3306:3306"

0 comments on commit 9dbf4af

Please sign in to comment.