jean-cloud-services/services/wordpress6/docker-compose.yml
2024-01-02 17:50:14 +01:00

44 lines
802 B
YAML

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