aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2021-01-01 11:45:57 -0800
committerAlec Warner <antarus@gentoo.org>2021-01-01 11:45:57 -0800
commit995019ee3a6a35fcb675b7b05a18f1cec1cc4efc (patch)
treee0e715ccd852c9d64686744ac65d3f990a3278e7
parentAdd net/pprof so we get /debug uri handlers. (diff)
downloadsoko-995019ee3a6a35fcb675b7b05a18f1cec1cc4efc.tar.gz
soko-995019ee3a6a35fcb675b7b05a18f1cec1cc4efc.tar.bz2
soko-995019ee3a6a35fcb675b7b05a18f1cec1cc4efc.zip
Downgrade to docker-compose file version 2.4.
This enables memory limits; to help prod not get stuck in memory limbo. Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r--docker-compose.override.yml2
-rw-r--r--docker-compose.yml3
2 files changed, 3 insertions, 2 deletions
diff --git a/docker-compose.override.yml b/docker-compose.override.yml
index a732c77..28c326f 100644
--- a/docker-compose.override.yml
+++ b/docker-compose.override.yml
@@ -1,4 +1,4 @@
-version: '3.2'
+version: '2.4'
services:
http-serving:
diff --git a/docker-compose.yml b/docker-compose.yml
index bd3420d..def3280 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,4 +1,4 @@
-version: '3.2'
+version: '2.4'
services:
http-serving:
@@ -16,6 +16,7 @@ services:
SOKO_LOG_FILE: '/var/log/soko/web.log'
depends_on:
- db
+ mem_limit: 4G
updater:
image: ${SOKO_UPDATER_IMAGE:-gentoo/soko-updater:latest}
volumes: