2024-05-05 11:05:51 +02:00
|
|
|
services:
|
|
|
|
# Wordpress
|
|
|
|
wordpress:
|
|
|
|
image: wordpress:fpm
|
|
|
|
container_name: wordpress
|
|
|
|
profiles:
|
|
|
|
- wordpress
|
2024-05-12 12:00:12 +02:00
|
|
|
restart: on-failure:5
|
2024-05-05 11:05:51 +02:00
|
|
|
depends_on:
|
2024-05-05 18:28:37 +02:00
|
|
|
- wordpress_db
|
2024-05-05 11:05:51 +02:00
|
|
|
- caddy
|
|
|
|
env_file:
|
|
|
|
- env/wordpress.env
|
|
|
|
volumes:
|
|
|
|
- ./config/wordpress/php.ini:/usr/local/etc/php/conf.d/custom.ini:ro
|
|
|
|
- wordpress:/var/www/html:rw
|
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
|
2024-05-05 18:28:37 +02:00
|
|
|
# Database wordpress
|
|
|
|
wordpress_db:
|
|
|
|
image: mariadb:latest
|
|
|
|
container_name: wordpress_db
|
|
|
|
profiles:
|
2024-05-05 11:05:51 +02:00
|
|
|
- database
|
2024-05-05 18:28:37 +02:00
|
|
|
- wordpress
|
|
|
|
depends_on:
|
2024-05-05 11:05:51 +02:00
|
|
|
- caddy
|
2024-05-12 12:00:12 +02:00
|
|
|
restart: on-failure:5
|
2024-05-05 18:28:37 +02:00
|
|
|
volumes:
|
2024-05-06 09:47:23 +02:00
|
|
|
- wordpress_db:/var/lib/mysql:rw
|
2024-05-05 18:28:37 +02:00
|
|
|
env_file:
|
|
|
|
- env/wordpress_db.env
|
|
|
|
command: '--default-authentication-plugin=mysql_native_password'
|
2024-05-05 11:05:51 +02:00
|
|
|
networks:
|
|
|
|
- infra-network
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-05 22:38:14 +02:00
|
|
|
|
|
|
|
volumes:
|
2024-05-06 09:47:23 +02:00
|
|
|
wordpress_db:
|
|
|
|
name: wordpress_db
|
2024-05-05 22:38:14 +02:00
|
|
|
wordpress:
|
|
|
|
name: wordpress
|