generated from alexstojda/go-react-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (58 loc) · 1.21 KB
/
docker-compose.yaml
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
55
56
57
58
59
60
61
62
63
64
65
version: "3.4"
services:
pinman-node-dev:
build:
context: .
target: node-dev
image: alexstojda/pinman/node-dev:${VERSION:-local}
pinman-go-dev:
depends_on:
- postgres
build:
context: .
target: go-dev
image: alexstojda/pinman/go-dev:${VERSION:-local}
pinman:
depends_on:
- postgres
build:
context: .
target: prod
args:
REACT_APP_API_HOST: http://localhost:8080
env_file:
- ./.env.local
environment:
- POSTGRES_HOST=postgres
ports:
- "8080:8080"
image: alexstojda/pinman:${VERSION:-local}
## Code generation
openapi-server:
build:
context: .
target: go-gen
image: alexstojda/pinman/openapi-server:${VERSION:-local}
entrypoint: "sleep"
command:
- infinity
openapi-client:
build:
context: .
target: node-gen
image: alexstojda/pinman/openapi-client:${VERSION:-local}
entrypoint: "sleep"
command:
- infinity
### Dependencies
postgres:
image: postgres
container_name: postgres
ports:
- "5432:5432"
env_file:
- ./.env.local
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: