-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.18 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
version: "2"
volumes:
postgres-data:
driver: local
gems:
driver: local
services:
db:
image: postgres:9.6
ports:
- 5433:5432
volumes:
- .:/code
- postgres-data:/var/lib/postgresql/data
environment:
LC_ALL: C.UTF-8
POSTGRES_PASSWORD: P4Ssw0rD!
test:
image: askify/askify:development
command: rspec spec/
build:
context: .
dockerfile: dev.Dockerfile
working_dir: /code
volumes:
- .:/code
- gems:/usr/local/bundle
tty: true
stdin_open: true
environment:
DATABASE_URL: "postgres://postgres:P4Ssw0rD!@db:5432/askify_test"
RACK_ENV: "test"
RAILS_ENV: "test"
LC_ALL: C.UTF-8
links:
- db
web:
image: askify/askify:development
entrypoint: /code/development-entrypoint
command: rails server -p 3000 -b 0.0.0.0
ports:
- 3000:3000
build:
context: .
dockerfile: dev.Dockerfile
working_dir: /code
volumes:
- .:/code
- gems:/usr/local/bundle
tty: false
stdin_open: true
environment:
DATABASE_URL: "postgres://postgres:P4Ssw0rD!@db:5432/askify_dev"
LC_ALL: C.UTF-8
links:
- db