infrastructure/docker-compose.wordpress.yml

53 lines
941 B
YAML
Raw Normal View History

version: "3.9"
services:
wp_db:
image: mariadb:10.10.3
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.2.0-fpm
container_name: wordpress
profiles:
- wordpress
restart: unless-stopped
env_file:
- env/wordpress.env
volumes:
- wordpress:/var/www/html
networks:
- app-network
security_opt:
- "no-new-privileges:true"
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:
- app-network
volumes:
wordpress:
name: wordpress
dbdata:
name: dbdata