42 lines
759 B
YAML
42 lines
759 B
YAML
version: '3.1'
|
|
|
|
services:
|
|
|
|
wp:
|
|
image: wordpress:5-apache
|
|
restart: unless-stopped
|
|
env_file: $DATA_DIR/wordpress.env
|
|
volumes:
|
|
- $DATA_DIR/wordpress:/var/www/html
|
|
- /srv/http/$JC_SERVICE:/var/www/html/static
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
|
|
db:
|
|
image: mariadb:10.11
|
|
restart: unless-stopped
|
|
env_file: $DATA_DIR/wordpress.env
|
|
volumes:
|
|
- $DATA_DIR/db:/var/lib/mysql
|
|
networks:
|
|
default:
|
|
ipv4_address: $NET.101
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 300M
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: $NET.0/24
|
|
|