41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
|
services:
|
||
|
redis:
|
||
|
image: redis:latest
|
||
|
container_name: lachaussettedebraspartsfr_redis
|
||
|
volumes:
|
||
|
- ./volumes/redis:/data
|
||
|
command: redis-server --appendonly yes
|
||
|
restart: unless-stopped
|
||
|
mariadb:
|
||
|
image: mariadb:latest
|
||
|
container_name: lachaussettedebraspartsfr_mariadb
|
||
|
env_file:
|
||
|
- .env
|
||
|
- ../passwords/lachaussettedebraspartsfr.pass
|
||
|
volumes:
|
||
|
- ./volumes/mysql:/var/lib/mysql
|
||
|
healthcheck:
|
||
|
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||
|
start_period: 10s
|
||
|
interval: 10s
|
||
|
timeout: 5s
|
||
|
retries: 3
|
||
|
command: ['mariadbd', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
|
||
|
restart: unless-stopped
|
||
|
wordpress:
|
||
|
image: wordpress:latest
|
||
|
container_name: lachaussettedebraspartsfr_wordpress
|
||
|
depends_on:
|
||
|
- mariadb
|
||
|
extra_hosts:
|
||
|
- "lachaussettedebrasparts.fr:103.177.249.4"
|
||
|
env_file:
|
||
|
- .env
|
||
|
- ../passwords/lachaussettedebraspartsfr.pass
|
||
|
ports:
|
||
|
- "127.0.0.1:8002:80"
|
||
|
volumes:
|
||
|
- ./volumes/wordpress:/var/www/html
|
||
|
- ./conf/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
|
||
|
restart: unless-stopped
|