From 7f74bad08a9096def231bc6ed158eebac3970aa2 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 18 Feb 2024 12:29:38 +0100 Subject: [PATCH] Added docker-compose file Signed-off-by: Janos SUTO --- docker/docker-compose.yaml | 59 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 docker/docker-compose.yaml diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml new file mode 100644 index 00000000..f5d855bb --- /dev/null +++ b/docker/docker-compose.yaml @@ -0,0 +1,59 @@ +version: "3" +services: + mysql: + image: mariadb:11.1.2 + container_name: mysql + restart: unless-stopped + cap_drop: + - ALL + cap_add: + - dac_override + - setuid + - setgid + environment: + - MYSQL_DATABASE=piler + - MYSQL_USER=piler + - MYSQL_PASSWORD=piler123 + - MYSQL_RANDOM_ROOT_PASSWORD=yes + command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci + volumes: + - db_data:/var/lib/mysql + piler: + image: sutoj/piler:1.4.4 + container_name: piler + init: true + environment: + - MYSQL_HOSTNAME=mysql + - MYSQL_DATABASE=piler + - MYSQL_USER=piler + - MYSQL_PASSWORD=piler123 + - PILER_HOSTNAME=cust1.acts.hu + - RT=1 + ports: + - "25:25" + - "80:80" + volumes: + - piler_etc:/etc/piler + - piler_manticore:/var/piler/manticore + - piler_store:/var/piler/store + 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: + - "mysql" + +volumes: + db_data: {} + piler_etc: {} + piler_manticore: {} + piler_store: {}