Skip to content

Commit

Permalink
Add mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abid committed Oct 7, 2024
1 parent 6921bd1 commit 6025353
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MAILDEV_IMAGE_TAG=2.1.0
MAILHOG_IMAGE_TAG=v1.0.1
MINIO_CLIENT_IMAGE_TAG=RELEASE.2022-12-24T15-21-38Z
MINIO_IMAGE_TAG=RELEASE.2023-01-02T09-40-09Z
MYSQL_IMAGE_TAG=8.0.31
MYSQL_IMAGE_TAG=9.0.1
ORACLE_IMAGE_TAG=11.2.0.2-slim
PORTAINER_IMAGE_TAG=2.16.2
RABBITMQ_IMAGE_TAG=3.12.1-management
Expand Down
1 change: 1 addition & 0 deletions mysql/.example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MYSQL_ROOT_PASSWORD=secret
25 changes: 25 additions & 0 deletions mysql/compose.mysql.example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
volumes:
common-mysql-db:
name: 'common-mysql-db'

services:
mysql:
image: 'mysql:${MYSQL_IMAGE_TAG:-9.0.1}'
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_0900_ai_ci
- --default-authentication-plugin=mysql_native_password
- --local-infile=1
- --secure-file-priv=/sqls
env_file:
- .env
networks:
common-net:
aliases:
- common-mysql
# ports:
# - 127.0.0.1:${MYSQL_PUBLISH_PORT:-3306}:3306
volumes:
- common-mysql-db:/var/lib/mysql
- ./sqls:/sqls
- ./csvs:/csvs

0 comments on commit 6025353

Please sign in to comment.