Remove healthcheck as it may lead to high CPU usage, adjust documentation

This commit is contained in:
Varakh 2019-12-22 12:47:41 +01:00
parent 1c3bc60563
commit 07d878a07f

View file

@ -22,9 +22,9 @@ services:
image: varakh/filebin:latest image: varakh/filebin:latest
container_name: filebin_app container_name: filebin_app
ports: ports:
- 181:80 - 127.0.0.1:181:80 # exposed port :80 mapped to :181 on only this host. 181 should then be used in proxy
environment: environment:
- BASE_URL=http://localhost:181/ # with trailing slash - BASE_URL=https://fb.domain.tld/ # with trailing slash
- DB_HOST=db - DB_HOST=db
- DB_PORT=5432 - DB_PORT=5432
- DB_NAME=fb - DB_NAME=fb
@ -39,8 +39,3 @@ services:
networks: networks:
- fb - fb
command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure.php && exec s6-svscan /etc/s6/' command: sh -c 'sh /wait-for.sh $$DB_HOST:$$DB_PORT -- php /configure.php && exec s6-svscan /etc/s6/'
healthcheck:
test: "nc -z localhost 80"
interval: 1s
timeout: 20s
retries: 20