mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
31 lines
899 B
YAML
31 lines
899 B
YAML
version: '3'
|
|
services:
|
|
mariadb:
|
|
image: mariadb:latest
|
|
container_name: mariadb
|
|
restart: unless-stopped
|
|
environment:
|
|
- MYSQL_ROOT_PASSWORD=$DB_ROOT_PASSWD
|
|
- MYSQL_DATABASE=$DB_NAME
|
|
- MYSQL_USER=$DB_USER
|
|
- MYSQL_PASSWORD=$DB_PASSWD
|
|
ports:
|
|
- $DB_PORT:3306
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
container_name: redis
|
|
command:
|
|
# - /bin/sh
|
|
# - -c
|
|
# # - Double dollars, so that the variable is not expanded by Docker Compose
|
|
# # - Surround by quotes, so that the shell does not split the password
|
|
# # - The ${variable:?message} syntax causes shell to exit with a non-zero
|
|
# # code and print a message, when the variable is not set or empty
|
|
# - redis-server --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD variable is not set}"
|
|
restart: unless-stopped
|
|
ports:
|
|
- ${REDIS_PORT}:6379
|
|
env_file:
|
|
- .env
|