mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 04:01:58 +01:00
62 lines
1.1 KiB
YAML
62 lines
1.1 KiB
YAML
|
version: "3"
|
||
|
services:
|
||
|
|
||
|
mysql:
|
||
|
image: mariadb:10.4
|
||
|
restart: unless-stopped
|
||
|
cap_drop:
|
||
|
- ALL
|
||
|
cap_add:
|
||
|
- dac_override
|
||
|
- setuid
|
||
|
- setgid
|
||
|
environment:
|
||
|
- MYSQL_ROOT_PASSWORD=abcde123
|
||
|
volumes:
|
||
|
- db_data:/var/lib/mysql
|
||
|
|
||
|
memcached:
|
||
|
image: memcached:latest
|
||
|
restart: unless-stopped
|
||
|
cap_drop:
|
||
|
- ALL
|
||
|
command: -m 64
|
||
|
|
||
|
piler:
|
||
|
image: sutoj/piler:1.3.10
|
||
|
init: true
|
||
|
environment:
|
||
|
- MYSQL_PILER_PASSWORD=piler123
|
||
|
- MYSQL_ROOT_PASSWORD=abcde123
|
||
|
- MYSQL_HOSTNAME=mysql
|
||
|
- PILER_HOSTNAME=archive.yourdomain.com
|
||
|
- MEMCACHED_HOST=memcached
|
||
|
ports:
|
||
|
- "25:25"
|
||
|
- "80:80"
|
||
|
- "443:443"
|
||
|
volumes:
|
||
|
- piler_etc:/etc/piler
|
||
|
- piler_var:/var/piler
|
||
|
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: {}
|