forked from DARIAEngineering/dcaf_case_management
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 915 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
version: '3.1'
services:
js:
image: dariaengineering/dcaf_case_management
command: bash -c "yarn install && yarn build --watch"
volumes:
- .:/usr/src/app
tty: true
css:
image: dariaengineering/dcaf_case_management
command: bash -c "yarn install && yarn build:css --watch"
volumes:
- .:/usr/src/app
tty: true
web:
build:
context: .
dockerfile: .docker/Dockerfile
image: dariaengineering/dcaf_case_management
command: ["./scripts/start_rails.sh"]
volumes:
- .:/usr/src/app
ports:
- "3000:3000"
links:
- db
- js
- css
stdin_open: true
tty: true
environment:
pg_url: postgres://postgres:postgres@db
env_file:
- .docker/web-variables.env
db:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres