forked from ebhomengo/niki
32 lines
674 B
YAML
32 lines
674 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
mysql:
|
|
image: mysql:8.0
|
|
container_name: patient
|
|
restart: unless-stopped
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: rootpass
|
|
MYSQL_DATABASE: patient
|
|
MYSQL_USER: appuser
|
|
MYSQL_PASSWORD: apppass
|
|
TZ: Asia/Tehran
|
|
command: [
|
|
"--character-set-server=utf8mb4",
|
|
"--collation-server=utf8mb4_unicode_ci",
|
|
"--default-authentication-plugin=mysql_native_password"
|
|
]
|
|
ports:
|
|
- "3306:3306"
|
|
volumes:
|
|
- mysql_data:/var/lib/mysql
|
|
- ./repository/migration:/docker-entrypoint-initdb.d
|
|
networks:
|
|
- backend
|
|
|
|
volumes:
|
|
mysql_data:
|
|
|
|
networks:
|
|
backend:
|
|
driver: bridge |