version: '3.8'

services:
  cpz-db:
    image: mariadb:10.6
    container_name: cpz-db
    restart: always
    environment:
      MYSQL_DATABASE: wordpress
      MYSQL_USER: wordpress
      MYSQL_PASSWORD: wordpress
      MYSQL_ROOT_PASSWORD: root_secret
    ports:
      - "3306:3306"
    volumes:
      - cpz_db_data:/var/lib/mysql
    networks:
      - cpz_network

volumes:
  cpz_db_data:

networks:
  cpz_network:
    external: true
