From: Dan Rademacher Date: Thu, 20 Apr 2023 17:21:32 +0000 (-0700) Subject: Update docker compose to solve stray PID problem X-Git-Tag: live~1280^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e377bc72e31add6d589270c51318dad9efde5b46?hp=7505d3423eb75e466cefe874f592be345f191683 Update docker compose to solve stray PID problem Resolves https://github.com/OpenHistoricalMap/issues/issues/516 --- diff --git a/docker-compose.yml b/docker-compose.yml index ad55e660e..cf70b4ff2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,8 @@ services: web: build: context: . + environment: + PIDFILE: /tmp/pids/server.pid volumes: - .:/app # Prevent these directories from mounting so they're not shared between host OS and Docker @@ -12,6 +14,8 @@ services: - web-tmp:/app/tmp # Mount a storage directory that will persist between runs - web-storage:/app/storage + tmpfs: + /tmp/pids/ ports: - "3000:3000" command: bundle exec rails s -p 3000 -b '0.0.0.0'