-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 944 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.7'
services:
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && ./bin/rails s -b '0.0.0.0'"
volumes:
- .:/rails
- bundle:/bundle
ports:
- "3000:3000"
depends_on:
- db
env_file:
- .env
db:
container_name: geolocation-db
image: postgres:latest
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
env_file:
- .env
test_db:
container_name: geolocation-test-db
image: postgres:latest
volumes:
- test_db_data:/var/lib/postgresql/data
ports:
- "5433:5432"
environment:
POSTGRES_DB: geolocation_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 'geolocation'
env_file:
- .env
volumes:
db_data:
test_db_data:
bundle: