version: '3' services: mariadb: image: mariadb container_name: ninefolio-mariadb restart: unless-stopped ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: changeme MYSQL_DATABASE: ninefolio MYSQL_USER: user MYSQL_PASSWORD: changeme volumes: - mariadb-data:/var/lib/mysql ninefolio: build: context: . dockerfile: ./misc/docker/Dockerfile container_name: ninefolio-app restart: unless-stopped image: reg.cadoles.com/envole/ninefolio depends_on: - mariadb env_file: .env ports: - "8005:80" volumes: - ./assets:/app/assets:delegated - ./src:/app/src:delegated - ./templates:/app/templates:delegated - ./config:/app/config:delegated - ./public/uploads:/app/public/uploads:delegated - ./misc:/app/misc:delegated - ./public/styles:/app/public/styles:delegated adminer: image: adminer container_name: ninefolio-adminer restart: always ports: - 6081:8080 volumes: mariadb-data: