forked from svs/covid19-supply-chain-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 874 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
version: '3'
services:
db:
image: postgres:12.2-alpine
volumes:
- covid_backend:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
web:
build: .
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
volumes:
- .:/app
- /app/node_modules
ports:
- "3000:3000"
depends_on:
- db
environment:
DATABSE_HOST: db
DATABSE_USER: postgres
DATABSE_PASS: postgres
WEBPACKER_DEV_SERVER_HOST: webpacker
webpacker:
build: .
command: ./bin/webpack-dev-server
volumes:
volumes:
- .:/app
- /app/node_modules
ports:
- "3035:3035"
depends_on:
- db
environment:
NODE_ENV: development
RAILS_ENV: development
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
volumes:
covid_backend: