version: '3' services: 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 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=https - WORDPRESS_DOMAINE=eolebase.ac-test.fr - WORDPRESS_ALIAS=/wordpress/ #volumes: # - ./containers/data:/app/public/wp-content/plugins/wp-cas adminer: image: docker.io/library/adminer container_name: wordpress-adminer restart: always ports: - 9100:8080 volumes: mariadb-data: