forked from ebhomengo/niki
38 lines
806 B
Plaintext
38 lines
806 B
Plaintext
version: '3.9'
|
|
|
|
services:
|
|
mysql:
|
|
platform: linux/amd64
|
|
image: mysql:8.0
|
|
ports:
|
|
- 3305:3305
|
|
volumes:
|
|
- ~/apps/mysql:/var/lib/mysql
|
|
restart: always
|
|
hostname: mysql
|
|
container_name: niki_mysql
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=root
|
|
- MYSQL_USER=niki_user
|
|
- MYSQL_PASSWORD=NIKI_user@123
|
|
- MYSQL_DATABASE=niki_db
|
|
|
|
niki-redis:
|
|
image: bitnami/redis:6.2
|
|
container_name: niki-redis
|
|
restart: always
|
|
ports:
|
|
- '6380:6379'
|
|
# TODO - remove `--save "" --appendonly no` from command to persist data
|
|
command: redis-server --loglevel warning --protected-mode no --save "" --appendonly no
|
|
environment:
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
volumes:
|
|
- niki-redis-data:/data
|
|
|
|
|
|
|
|
volumes:
|
|
dbdata:
|
|
niki-redis-data:
|