-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
41 lines (40 loc) · 863 Bytes
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
41 lines (40 loc) · 863 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
services:
client:
container_name: hobbit_dev_client
build: ./client
image: hobbit_client
ports:
- 8080:8080
working_dir: /code
volumes:
- type: bind
source: ./client
target: /code
command: [ "http-server" ]
api:
container_name: hobbit_dev_api
ports:
- 3000:3000
environment:
- PGUSER=hobbit
- PGHOST=db
- PGPASSWORD=password
- PGDATABASE=tracker
- PGPORT=5432
- NODE_ENV=development
depends_on:
- db
command: bash -c "npm install && npm run seedDev && npm run dev"
db:
container_name: hobbit_dev_db
volumes:
- "dbdata:/var/lib/postgresql/data"
environment:
- POSTGRES_DB=tracker
- POSTGRES_USER=hobbit
- POSTGRES_PASSWORD=password
volumes:
dbdata:
networks:
default:
name: hobbit_api