ninedocker/misc/images/wordpress/docker-compose.yml

79 lines
1.8 KiB
YAML
Raw Normal View History

2024-07-04 12:42:13 +02:00
version: '3'
services:
2024-07-05 23:01:17 +02:00
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
2024-07-04 12:42:13 +02:00
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
2024-07-05 23:01:17 +02:00
networks:
- wordpress-network
2024-07-04 12:42:13 +02:00
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
2024-07-05 23:01:17 +02:00
- WORDPRESS_PROTOCOL=http
- WORDPRESS_DOMAINE=nine.local
2024-07-04 12:42:13 +02:00
- WORDPRESS_ALIAS=/wordpress/
2024-07-05 23:01:17 +02:00
volumes:
- ./containers/wordpress/entrypoint.sh:/docker/entrypoint.sh
- ./containers/wordpress/apache.conf:/etc/apache2/conf.d/zapp.conf
networks:
- wordpress-network
2024-07-04 12:42:13 +02:00
adminer:
image: docker.io/library/adminer
container_name: wordpress-adminer
restart: always
ports:
- 9100:8080
2024-07-05 23:01:17 +02:00
networks:
- wordpress-network
2024-07-04 12:42:13 +02:00
volumes:
2024-07-05 23:01:17 +02:00
mariadb-data:
networks:
wordpress-network:
name: wordpress-network