version: '3' services: nineapache: image: reg.cadoles.com/envole/nineapache:8.1 container_name: wordpress-nineapache restart: always healthcheck: test: curl --fail http://localhost || exit 1 interval: 1s timeout: 60s networks: - wordpress-network ports: - "80:80" volumes: - ./containers/nineapache/apache.conf:/etc/apache2/conf.d/zapp.conf mariadb: image: mariadb container_name: wordpress-mariadb restart: always ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: changeme MYSQL_DATABASE: wordpress MYSQL_USER: user MYSQL_PASSWORD: changeme volumes: - mariadb-data:/var/lib/mysql networks: - wordpress-network wordpress: build: context: ./containers/wordpress image: reg.cadoles.com/envole/wordpress container_name: wordpress-app restart: always depends_on: - mariadb ports: - "9003:80" environment: - WORDPRESS_DB_HOST=mariadb - WORDPRESS_DB_NAME=wordpress - WORDPRESS_DB_USER=user - WORDPRESS_DB_PASSWORD=changeme - WORDPRESS_TITLE=wordpress - WORDPRESS_USER=admin - WORDPRESS_PASSWORD=changeme - WORDPRESS_EMAIL=admin@noreply.fr - WORDPRESS_PROTOCOL=http - WORDPRESS_DOMAINE=nine.local - WORDPRESS_ALIAS=/wordpress/ volumes: - ./containers/wordpress/entrypoint.sh:/docker/entrypoint.sh - ./containers/wordpress/apache.conf:/etc/apache2/conf.d/zapp.conf networks: - wordpress-network adminer: image: docker.io/library/adminer container_name: wordpress-adminer restart: always ports: - 9100:8080 networks: - wordpress-network volumes: mariadb-data: networks: wordpress-network: name: wordpress-network