forked from AreejAsiri/doubtfire-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 943 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 943 Bytes
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
version: '2'
services:
api:
container_name: doubtfire-api
build: .
ports:
- "3000:3000"
volumes:
- ./:/doubtfire-api
- /doubtfire-api/.bundle
- /doubtfire-api/tmp
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
environment:
DF_DOCKER_MACHINE_IP: api
ports:
- "4200:4200" # Angular 6
- "8000:8000" # Angular 1
- "8080:8080" # Angular 1
volumes:
- ../doubtfire-web:/doubtfire-web
- /doubtfire-web/bin
- /doubtfire-web/build
- /doubtfire-web/node_modules
- /doubtfire-web/vendor