-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 790 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 790 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
# TODO: Cache Cargo dependencies on image build
version: "3"
services:
web-client:
build: ./client
volumes:
- ./client:/usr/src/app
ports:
- "3000:3000"
command: bash -c "yarn && yarn start"
links:
- api-server
api-server:
build: ./api-server
volumes:
- ./api-server:/usr/src/app
ports:
- "8080:8080"
links:
- database
environment:
- CARGO_INCREMENTAL=1
command: bash -c "./wait-for-it.sh db:5432 -q -- diesel setup && cargo watch -x run"
database:
image: "postgres:9"
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data/pgdata
environment:
POSTGRES_PASSWORD: supersecretpassword
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
pgdata: {}