]> git.openstreetmap.org Git - rails.git/blob - docker-compose.yml
Added complete Rails test suite
[rails.git] / docker-compose.yml
1 version: "3"
2
3 services:
4   web:
5     build:
6       context: .
7     volumes:
8       - .:/app
9       # don't mount tmp directory (https://github.com/Shopify/bootsnap/issues/177)
10       - /app/tmp
11       # Prevent node_modules from mounting so it's not shared between host OS and Docker
12       - /app/node_modules/
13     ports:
14       - "3000:3000"
15     environment:
16       # https://github.com/Shopify/bootsnap/issues/262
17       ENABLE_BOOTSNAP: 'false'
18     command: bundle exec rails s -p 3000 -b '0.0.0.0'
19     depends_on:
20       - db
21
22   db:
23     build:
24       context: .
25       dockerfile: docker/postgres/Dockerfile
26     ports:
27       - "54321:5432"
28     environment:
29       POSTGRES_HOST_AUTH_METHOD: trust
30       POSTGRES_DB: openstreetmap
31     volumes:
32       - ./docker-db-data:/var/lib/postgresql/data