2023-03-17 22:38:48 +01:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
wp_db:
|
2023-04-16 00:43:35 +02:00
|
|
|
image: mariadb:10.10.3
|
2023-03-17 22:38:48 +01:00
|
|
|
container_name: wp_db
|
|
|
|
profiles:
|
|
|
|
- wp_db
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/wp_database.env
|
|
|
|
volumes:
|
|
|
|
- dbdata:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- app-network
|
2023-04-16 23:43:40 +02:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2023-03-17 22:38:48 +01:00
|
|
|
|
|
|
|
wordpress:
|
|
|
|
depends_on:
|
|
|
|
- wp_db
|
2023-04-16 00:43:35 +02:00
|
|
|
image: wordpress:6.2.0-fpm
|
2023-03-17 22:38:48 +01:00
|
|
|
container_name: wordpress
|
|
|
|
profiles:
|
|
|
|
- wordpress
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/wordpress.env
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
networks:
|
|
|
|
- app-network
|
2023-03-18 09:50:06 +01:00
|
|
|
security_opt:
|
2023-04-16 23:43:40 +02:00
|
|
|
- no-new-privileges:true
|
|
|
|
# cap_drop:
|
|
|
|
# - ALL
|
|
|
|
# cap_add:
|
|
|
|
# - SETUID
|
|
|
|
# - SETGID
|
|
|
|
# - DAC_OVERRIDE
|
|
|
|
# - NET_BIND_SERVICE
|
|
|
|
# - NET_RAW
|
|
|
|
# - CAP_CHOWN
|
2023-03-17 22:38:48 +01:00
|
|
|
phpmyadmin:
|
|
|
|
image: phpmyadmin:5.2.0
|
|
|
|
container_name: phpmyadmin
|
|
|
|
profiles:
|
|
|
|
- phpmyadmin
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/phpmyadmin.env
|
|
|
|
depends_on:
|
|
|
|
- wp_db
|
|
|
|
networks:
|
2023-03-19 13:01:07 +01:00
|
|
|
- app-network
|
2023-04-16 23:43:40 +02:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2023-03-19 13:01:07 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
wordpress:
|
|
|
|
name: wordpress
|
|
|
|
dbdata:
|
|
|
|
name: dbdata
|