2023-12-16 06:09:50 +00:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
|
|
|
mysql:
|
|
|
|
image: mysql:8.0
|
|
|
|
ports:
|
2024-01-14 16:50:09 +00:00
|
|
|
- "3306:3306"
|
2024-01-14 15:53:37 +00:00
|
|
|
container_name: niki-database
|
2023-12-16 06:09:50 +00:00
|
|
|
volumes:
|
2024-01-14 16:50:09 +00:00
|
|
|
- niki-db-data:/data
|
2023-12-16 06:09:50 +00:00
|
|
|
restart: always
|
2024-01-14 15:53:37 +00:00
|
|
|
command: [ 'mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci' ]
|
2023-12-16 06:09:50 +00:00
|
|
|
environment:
|
2024-01-14 15:53:37 +00:00
|
|
|
MYSQL_ROOT_PASSWORD: nikiRoo7t0lk2o20
|
|
|
|
MYSQL_DATABASE: niki_db
|
|
|
|
MYSQL_USER: niki
|
|
|
|
MYSQL_PASSWORD: nikiappt0lk2o20
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-12-16 06:09:50 +00:00
|
|
|
|
|
|
|
|
2024-01-14 15:53:37 +00:00
|
|
|
volumes:
|
|
|
|
dbdata:
|
|
|
|
niki-redis-data:
|
2024-01-14 16:50:09 +00:00
|
|
|
niki-db-data:
|