-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 912 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
44
45
46
47
48
49
50
51
52
version: '3'
services:
# The dev proxy
proxy:
build:
context: ./proxy
dockerfile: Dockerfile-dev
depends_on:
- client
- api
ports:
- '5006:3000'
# The React Client
client:
build:
context: ./client
dockerfile: Dockerfile-dev
env_file:
- ./.env-shared
volumes:
- /app/node_modules/
- gb-sync-client:/app:nocopy
depends_on:
- api
# the API server
api:
build:
context: ./api
dockerfile: Dockerfile-dev
depends_on:
- db
env_file:
- ./.env-shared
volumes:
- /app/node_modules/
- gb-sync-api:/app:nocopy
# database server
db:
image: postgres:11.1-alpine
ports: ["54326:5432"]
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-docker}
- POSTGRES_DB=${POSTGRES_DB:-gotbet}
volumes:
gb-sync-client:
external: true
gb-sync-api:
external: true