25 lines
665 B
YAML
25 lines
665 B
YAML
|
version: '3.8'
|
||
|
services:
|
||
|
db:
|
||
|
image: mysql:5.6
|
||
|
environment:
|
||
|
MYSQL_DATABASE: '${DB_DATABASE}'
|
||
|
MYSQL_USER: '${DB_USERNAME}'
|
||
|
MYSQL_PASSWORD: '${DB_PASSWORD}'
|
||
|
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
|
||
|
expose:
|
||
|
- ${DB_PORT}:3306
|
||
|
restart: unless-stopped
|
||
|
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_general_ci
|
||
|
volumes:
|
||
|
- ./data/mysql:/var/lib/mysql
|
||
|
- ./data/import:/docker-entrypoint-initdb.d
|
||
|
|
||
|
cache:
|
||
|
image: redis:6.0-alpine
|
||
|
volumes:
|
||
|
- ./data/redis/:/data
|
||
|
expose:
|
||
|
- ${REDIS_PORT}:6379
|
||
|
restart: unless-stopped
|