jean-cloud-services/services/collectif-arthadie.fr/docker-compose.yml

50 lines
1.0 KiB
YAML
Raw Normal View History

2023-04-24 10:11:09 +00:00
version: '3.1'
services:
wp:
2024-06-15 15:59:53 +00:00
image: wordpress:6.5-apache
2023-04-24 10:11:09 +00:00
restart: unless-stopped
env_file: /data/collectif-arthadie.fr/env
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wpdbuser
WORDPRESS_DB_NAME: wpdb
volumes:
- /data/collectif-arthadie.fr/wordpress:/var/www/html
- /data/collectif-arthadie.fr/static:/var/www/html/static
networks:
default:
2024-01-02 16:50:14 +00:00
ipv4_address: $NET.100
2023-04-24 10:11:09 +00:00
deploy:
resources:
limits:
2024-06-15 15:59:53 +00:00
cpus: '1'
memory: 500M
2023-04-24 10:11:09 +00:00
db:
image: mariadb:10.4
restart: unless-stopped
env_file: /data/collectif-arthadie.fr/env
environment:
MYSQL_DATABASE: wpdb
MYSQL_USER: wpdbuser
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- /data/collectif-arthadie.fr/db:/var/lib/mysql
networks:
default:
2024-01-02 16:50:14 +00:00
ipv4_address: $NET.101
2023-04-24 10:11:09 +00:00
deploy:
resources:
limits:
cpus: '0.50'
2024-01-02 16:50:14 +00:00
memory: 300M
2023-04-24 10:11:09 +00:00
networks:
default:
ipam:
config:
2024-01-02 16:50:14 +00:00
- subnet: $NET.0/24
2023-04-24 10:11:09 +00:00