Docker: add service 'memcached'

Additionally, setup memcached for php-fpm.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-08-08 18:35:49 -07:00
parent ae0f69a5e4
commit 35851d5533
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
6 changed files with 24 additions and 1 deletions

View file

@ -29,6 +29,13 @@ services:
volumes:
- ./cache:/cache
memcached:
image: aurweb:latest
init: true
command: /docker/scripts/run-memcached.sh
healthcheck:
test: "bash /docker/health/memcached.sh"
mariadb:
image: aurweb:latest
init: true
@ -136,6 +143,8 @@ services:
condition: service_healthy
mariadb:
condition: service_healthy
memcached:
condition: service_healthy
volumes:
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
- mariadb_data:/var/lib/mysql