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