2021-01-03 18:20:32 +01:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
|
|
|
|
mysql:
|
2022-12-16 12:40:18 +01:00
|
|
|
image: mariadb:10.6
|
|
|
|
container_name: mysql
|
2021-01-03 18:20:32 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- dac_override
|
|
|
|
- setuid
|
|
|
|
- setgid
|
|
|
|
environment:
|
2021-02-05 17:36:51 +01:00
|
|
|
- MYSQL_DATABASE=piler
|
|
|
|
- MYSQL_USER=piler
|
|
|
|
- MYSQL_PASSWORD=piler123
|
2021-02-07 16:48:03 +01:00
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
2021-02-05 17:36:51 +01:00
|
|
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
2021-02-09 07:47:31 +01:00
|
|
|
healthcheck:
|
|
|
|
test: mysql --user=piler --password=piler123 piler --execute "show tables"
|
|
|
|
interval: "60s"
|
|
|
|
timeout: "5s"
|
|
|
|
start_period: "15s"
|
|
|
|
retries: 3
|
2021-01-03 18:20:32 +01:00
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/mysql
|
|
|
|
|
|
|
|
memcached:
|
2022-12-16 12:40:18 +01:00
|
|
|
container_name: memcached
|
2021-01-03 18:20:32 +01:00
|
|
|
image: memcached:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
command: -m 64
|
|
|
|
|
|
|
|
piler:
|
2022-12-20 16:32:41 +01:00
|
|
|
image: sutoj/piler:1.4.2
|
2022-12-16 12:40:18 +01:00
|
|
|
container_name: piler
|
2021-01-03 18:20:32 +01:00
|
|
|
init: true
|
|
|
|
environment:
|
2021-02-05 17:36:51 +01:00
|
|
|
- MYSQL_DATABASE=piler
|
|
|
|
- MYSQL_USER=piler
|
|
|
|
- MYSQL_PASSWORD=piler123
|
2021-01-03 18:20:32 +01:00
|
|
|
- MYSQL_HOSTNAME=mysql
|
2023-05-25 19:00:51 +02:00
|
|
|
- PILER_HOSTNAME=archive.example.com
|
2021-01-03 18:20:32 +01:00
|
|
|
- MEMCACHED_HOST=memcached
|
|
|
|
ports:
|
|
|
|
- "25:25"
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- piler_etc:/etc/piler
|
2022-12-20 16:32:41 +01:00
|
|
|
- piler_var_store:/var/piler/store
|
2022-12-20 17:02:51 +01:00
|
|
|
- piler_var_manticore:/var/piler/manticore
|
2021-01-03 18:20:32 +01: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: {}
|
2022-12-20 16:32:41 +01:00
|
|
|
piler_var_store: {}
|
2022-12-20 17:02:51 +01:00
|
|
|
piler_var_manticore: {}
|