version: '3.1' volumes: db: services: joomla: # image: joomla build: joomla # restart: always links: - db:mysql ports: - 8002:80 volumes: - ./volumes/joomla:/var/www/html - ../template/src:/template:ro - ../template/src:/var/www/html/templates/kita_zwergenland:ro - ./sync:/sync:ro environment: JOOMLA_DB_HOST: db JOOMLA_DB_PASSWORD: example db: image: mariadb restart: unless-stopped volumes: - db:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: example