X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c514fd62fe005d8d41a39e11508a3aee6ba9946d..033c3b28b3b2708634f3015449d0c2ed222e26d6:/docker-compose.yml?ds=sidebyside diff --git a/docker-compose.yml b/docker-compose.yml index 70730febf..f03d315c7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,15 @@ services: context: . volumes: - .:/app + # don't mount tmp directory (https://github.com/Shopify/bootsnap/issues/177) + - /app/tmp + # Prevent node_modules from mounting so it's not shared between host OS and Docker + - /app/node_modules/ ports: - "3000:3000" + environment: + # https://github.com/Shopify/bootsnap/issues/262 + ENABLE_BOOTSNAP: 'false' command: bundle exec rails s -p 3000 -b '0.0.0.0' depends_on: - db @@ -19,6 +26,7 @@ services: ports: - "54321:5432" environment: + POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_DB: openstreetmap volumes: - ./docker-db-data:/var/lib/postgresql/data