forked from doubtfire-lms/doubtfire-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 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
version: '2'
services:
api:
container_name: doubtfire-api
build: .
command: bash -c "if [ -f /doubtfire-api/tmp/pids/server.pid ]; then rm /doubtfire-api/tmp/pids/server.pid; fi && rails server -b 0.0.0.0"
ports:
- "3000:3000"
volumes:
- ../doubtfire-api:/doubtfire-api
links:
- web
depends_on:
- db
environment:
DATABASE_URL: 'postgresql://itig:d872$$dh@db:5432/doubtfire_dev'
RAILS_ENV: 'development'
db:
container_name: doubtfire-db
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: d872$$dh
POSTGRES_USER: itig
web:
container_name: doubtfire-web
build: ../doubtfire-web
command: npm start
environment:
DF_DOCKER_MACHINE_IP: $DF_DOCKER_MACHINE_IP
ports:
- "8000:8000"
- "8080:8080"
volumes:
- ../doubtfire-web:/doubtfire-web