2
0

(simatec) network added

This commit is contained in:
simatec
2024-06-13 13:10:48 +02:00
parent 1ea8a7ee35
commit 62e1a09ed9
3 changed files with 40 additions and 15 deletions

View File

@@ -1,10 +1,10 @@
version: "3"
services:
mysql:
image: mariadb:${MARIA_DB_VERSION}
container_name: mysql_piler
restart: unless-stopped
networks:
- pilernet
cap_drop:
- ALL
cap_add:
@@ -17,7 +17,7 @@ services:
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- TZ="Europe/Berlin"
- MARIADB_AUTO_UPGRADE=TRUE
#- MARIADB_AUTO_UPGRADE=TRUE
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
healthcheck:
test: mysql --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} piler --execute "show tables"
@@ -32,6 +32,8 @@ services:
image: memcached:latest
container_name: memcached_piler
restart: unless-stopped
networks:
- pilernet
cap_drop:
- ALL
command: -m 64
@@ -40,6 +42,8 @@ services:
image: simatec/piler:${PILER_VERSION}
container_name: piler
restart: unless-stopped
networks:
- pilernet
hostname: ${PILER_DOMAIN}
init: true
environment:
@@ -77,8 +81,12 @@ services:
limits:
memory: 512M
depends_on:
- "memcached"
- "mysql"
- memcached
- mysql
networks:
pilernet:
external: true
volumes:
db_data: