2022-03-08 11:02:21 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
|
|
|
|
mysql:
|
2022-12-15 11:07:20 +00:00
|
|
|
image: mariadb:10.9.4
|
2022-03-08 11:02:21 +00:00
|
|
|
container_name: mysql_piler
|
|
|
|
restart: unless-stopped
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- dac_override
|
|
|
|
- setuid
|
|
|
|
- setgid
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
2022-04-20 10:35:35 +00:00
|
|
|
- TZ="Europe/Berlin"
|
2022-03-08 11:02:21 +00:00
|
|
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
|
|
|
healthcheck:
|
|
|
|
test: mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
|
|
|
|
interval: "60s"
|
|
|
|
timeout: "5s"
|
|
|
|
start_period: "15s"
|
|
|
|
retries: 3
|
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/mysql
|
|
|
|
|
|
|
|
memcached:
|
|
|
|
image: memcached:latest
|
|
|
|
container_name: memcached_piler
|
|
|
|
restart: unless-stopped
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
command: -m 64
|
|
|
|
|
|
|
|
piler:
|
2022-12-16 16:21:19 +00:00
|
|
|
image: sutoj/piler:1.4.2
|
2022-03-08 11:02:21 +00:00
|
|
|
container_name: piler
|
|
|
|
restart: unless-stopped
|
|
|
|
hostname: ${PILER_DOMAIN}
|
|
|
|
init: true
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- MYSQL_HOSTNAME=mysql
|
|
|
|
- PILER_HOSTNAME=${PILER_DOMAIN}
|
|
|
|
- MEMCACHED_HOST=memcached
|
2022-04-20 10:35:35 +00:00
|
|
|
- TZ="Europe/Berlin"
|
2022-03-08 11:02:21 +00:00
|
|
|
ports:
|
|
|
|
- "25:25"
|
2022-03-09 13:28:14 +00:00
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
2022-03-08 11:02:21 +00:00
|
|
|
volumes:
|
|
|
|
- piler_etc:/etc/piler
|
|
|
|
- piler_var:/var/piler
|
2022-04-20 10:35:35 +00:00
|
|
|
- piler_cron:/var/spool/cron/crontabs
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2022-03-08 11:02:21 +00:00
|
|
|
healthcheck:
|
|
|
|
test: curl -s smtp://localhost/
|
|
|
|
interval: "60s"
|
|
|
|
timeout: "3s"
|
|
|
|
start_period: "15s"
|
|
|
|
retries: 3
|
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
reservations:
|
|
|
|
memory: 512M
|
|
|
|
limits:
|
|
|
|
memory: 512M
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- "memcached"
|
|
|
|
- "mysql"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db_data: {}
|
|
|
|
piler_etc: {}
|
|
|
|
piler_var: {}
|
2022-04-20 10:35:35 +00:00
|
|
|
piler_cron: {}
|