--- lbbs-combo/docker-compose.yml 2026/01/08 03:27:09 1.1 +++ lbbs-combo/docker-compose.yml 2026/01/09 11:16:28 1.3 @@ -1,6 +1,7 @@ services: mysql: image: mysql:8.4 + platform: ${RUN_PLATFORM} restart: unless-stopped volumes: - mysql-data:/var/lib/mysql @@ -12,9 +13,15 @@ services: MYSQL_PASSWORD: YjM2ZmRmODNmYmE networks: - app-network + mem_limit: 512M + command: + - --skip-performance-schema + - --innodb-buffer-pool-size=64M + - --max-connections=15 apache: image: leafok/lbbs-apache:testing + platform: ${RUN_PLATFORM} restart: unless-stopped build: context: . @@ -31,6 +38,7 @@ services: php: image: leafok/lbbs-php:testing + platform: ${RUN_PLATFORM} restart: unless-stopped build: context: . @@ -42,7 +50,7 @@ services: depends_on: mysql: condition: service_started - restart: true + restart: true networks: - app-network expose: @@ -51,6 +59,7 @@ services: bbsd-prepare: image: leafok/lbbs-bbsd:testing + platform: ${RUN_PLATFORM} restart: on-failure build: context: . @@ -64,14 +73,14 @@ services: depends_on: mysql: condition: service_started - restart: true + restart: true networks: - app-network - command: - [ "/bin/sh", "/usr/local/lbbs/bin/bbsd_prepare.sh" ] + command: [ "/bin/sh", "/usr/local/lbbs/bin/bbsd_prepare.sh" ] bbsd: image: leafok/lbbs-bbsd:testing + platform: ${RUN_PLATFORM} restart: unless-stopped shm_size: '4gb' ports: @@ -88,8 +97,7 @@ services: condition: service_completed_successfully networks: - app-network - command: - [ "/usr/local/lbbs/bin/bbsd", "-f" ] + command: [ "/usr/local/lbbs/bin/bbsd", "-f" ] networks: app-network: