-
Notifications
You must be signed in to change notification settings - Fork 86
/
docker-compose.yml
54 lines (50 loc) · 958 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
53
54
version: '3.4'
services:
# back-end api built with golang
golang:
build:
context: golang
dockerfile: server.Dockerfile
target: dev
volumes:
- ./golang:/root
ports:
- "5000:5000"
env_file: .env
depends_on:
- postgres
worker:
build:
context: golang
dockerfile: worker.Dockerfile
target: dev
volumes:
- ./golang:/root
env_file: .env
depends_on:
- postgres
# front-end built with react
react:
stdin_open: true
build:
context: react
target: dev
volumes:
- ./react:/root
ports:
- "3000:3000"
# postgres is our primary data store
postgres:
build: postgres
volumes:
- ./golang/sql/schema:/docker-entrypoint-initdb.d/schema
# nginx is used to proxy /api
nginx:
build:
context: nginx
target: dev
ports:
- "4500:4500"
depends_on:
- react
- golang