Compose-Library/opendcim.compose.yaml.txt
2025-01-25 18:01:48 +01:00

29 lines
No EOL
661 B
Text
Executable file

version: '3.7'
services:
db:
image: mariadb
container_name: db
restart: always
ports:
- ${IP}:${PORT_DB}:3306
environment:
MARIADB_USER: opendcim
MARIADB_DATABASE: opendcim
MARIADB_ROOT_PASSWORD: ${DB_PASS}
MARIADB_PASSWORD: ${DB_PASS}
MARIADB_ROOT_HOST: "%"
volumes:
- ${DATA_DIR}/bdd:/var/lib/mysql
web:
image: opendcim/opendcim:23.04
ports:
- ${IP}:${PORT}:80
environment:
OPENDCIM_DB_HOST: ${IP}:${PORT_DB}
OPENDCIM_DB_USER: opendcim
OPENDCIM_DB_PASSWORD: ${DB_PASS}
OPENDCIM_DB_NAME: opendcim
links:
- db