2023-03-17 22:38:48 +01:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
wp_db:
|
|
|
|
image: mariadb:10.10.2
|
|
|
|
container_name: wp_db
|
|
|
|
profiles:
|
|
|
|
- wp_db
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/wp_database.env
|
|
|
|
volumes:
|
|
|
|
- dbdata:/var/lib/mysql
|
|
|
|
networks:
|
|
|
|
- app-network
|
|
|
|
|
|
|
|
wordpress:
|
|
|
|
depends_on:
|
|
|
|
- wp_db
|
|
|
|
image: wordpress:6.1.1-php8.1-fpm
|
|
|
|
container_name: wordpress
|
|
|
|
profiles:
|
|
|
|
- wordpress
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- env/wordpress.env
|
|
|
|
# environment:
|
|
|
|
# - WORDPRESS_DB_HOST=wp_db:3306
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html
|
|
|
|
networks:
|
|
|
|
- app-network
|
2023-03-18 09:50:06 +01:00
|
|
|
security_opt:
|
|
|
|
- "no-new-privileges:true"
|
|
|
|
cap_drop:
|
|
|
|
- "ALL"
|
|
|
|
cap_add:
|
|
|
|
- "NET_RAW"
|
|
|
|
- "CAP_CHOWN"
|
|
|
|
- "SETGID"
|
|
|
|
- "SETUID"
|
|
|
|
|
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
|
|
|
|
# ports:
|
|
|
|
# - 8080:80
|
|
|
|
depends_on:
|
|
|
|
- wp_db
|
|
|
|
networks:
|
2023-03-19 13:01:07 +01:00
|
|
|
- app-network
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
wordpress:
|
|
|
|
name: wordpress
|
|
|
|
dbdata:
|
|
|
|
name: dbdata
|