50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
version: '3.1'
|
|
|
|
services:
|
|
|
|
wp:
|
|
image: wordpress:5.8-apache
|
|
restart: unless-stopped
|
|
env_file: $DATA_DIR/env
|
|
environment:
|
|
WORDPRESS_DB_HOST: db
|
|
WORDPRESS_DB_USER: wpdbuser
|
|
WORDPRESS_DB_NAME: wpdb
|
|
#WORDPRESS_CONFIG_EXTRA: "define( 'WP_HOME', 'https://feministesucl34.jean-cloud.net/wordpress' ); define( 'WP_SITEURL', 'https://feministesucl34.jean-cloud.net/wordpress' );"
|
|
volumes:
|
|
- $DATA_DIR/wordpress:/var/www/html
|
|
- $DATA_DIR/static:/var/www/html/static
|
|
networks:
|
|
default:
|
|
ipv4_address: 172.29.9.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
db:
|
|
image: mariadb:10.4
|
|
restart: unless-stopped
|
|
env_file: $DATA_DIR/env
|
|
environment:
|
|
MYSQL_DATABASE: wpdb
|
|
MYSQL_USER: wpdbuser
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
volumes:
|
|
- $DATA_DIR/db:/var/lib/mysql
|
|
networks:
|
|
default:
|
|
ipv4_address: 172.29.9.101
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: 172.29.9.0/24
|
|
|