-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 905 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
version: "3"
services:
web:
image: nginx:latest
ports:
- "7080:80"
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./docker/log-volume/nginx:/var/log/nginx
depends_on:
- api
links:
- api
api:
restart: on-failure
build: .
tty: true
stdin_open: true
volumes:
- .:/app
- bundle_cache:/usr/local/bundle
expose:
- "3000"
- "28080"
depends_on:
- db
environment:
DATABASE_URL: postgresql://ubuntu@db/trb_development
TEST_DATABASE_URL: postgresql://ubuntu@db/trb_test
PORT: 3000
db:
image: camptocamp/postgres:9.6
volumes:
- ./docker/data-volume/postgresql:/var/lib/postgresql/data
ports:
- 5456:5432
environment:
POSTGRES_USER: ubuntu
POSTGRES_DB: trb_database
POSTGRES_PASSWORD: ""
volumes:
bundle_cache: