version: '3' services: wp: image: wordpress:6-apache restart: unless-stopped env_file: $DATA_DIR/wordpress.env environment: TZ: Europe/Paris volumes: - $DATA_DIR/wordpress:/var/www/html networks: default: ipv4_address: $NET.100 deploy: resources: limits: cpus: '0.50' memory: 100M db: image: mariadb:11 restart: unless-stopped env_file: $DATA_DIR/wordpress.env environment: TZ: Europe/Paris volumes: - $DATA_DIR/db:/var/lib/mysql networks: default: ipv4_address: $NET.101 deploy: resources: limits: cpus: '0.50' memory: 300M #init is very hugry networks: default: ipam: config: - subnet: $NET.0/24