/
docker-compose.yml
90 lines (83 loc) · 2.38 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3.7'
services:
client:
container_name: gran_client
build: ./container/client
working_dir: /client
volumes:
- ./client:/client:cached
ports:
- 3000:3000
tty: true
stdin_open: true
environment:
- API_URL=${API_URL}
- FIREBASE_API_KEY=${FIREBASE_API_KEY}
- FIREBASE_PROJECT_ID=${FIREBASE_PROJECT_ID}
- FIREBASE_MESSAGING_SENDER_ID=${FIREBASE_MESSAGING_SENDER_ID}
command: yarn dev -H 0.0.0.0 -p 3000
proxy:
container_name: gran_proxy
build: ./container/proxy
volumes:
- ./container/proxy/envoy.yaml:/etc/envoy/envoy.yaml:cached
ports:
- 8080:8080
command: envoy -c /etc/envoy/envoy.yaml
user_api:
container_name: gran_user_api
build: ./container/api/user
working_dir: /go/src/github.com/calmato/gran/api/user
volumes:
- ./api/user:/go/src/github.com/calmato/gran/api/user:cached
- ./secret:/secret:cached
environment:
- PORT=8080
- GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}
- GCP_STORAGE_BUCKET_NAME=${GCP_STORAGE_BUCKET_NAME}
command: realize start
todo_api:
container_name: gran_todo_api
build: ./container/api/todo
working_dir: /go/src/github.com/calmato/gran/api/todo
volumes:
- ./api/todo:/go/src/github.com/calmato/gran/api/todo:cached
- ./secret:/secret:cached
environment:
- PORT=8080
- GOOGLE_APPLICATION_CREDENTIALS=${GOOGLE_APPLICATION_CREDENTIALS}
- GCP_STORAGE_BUCKET_NAME=${GCP_STORAGE_BUCKET_NAME}
command: realize start
storybook:
container_name: gran_storybook
build: ./container/storybook
working_dir: /storybook
volumes:
- ./storybook:/storybook:cached
- ./client:/client:cached
ports:
- 6006:6006
tty: true
stdin_open: true
environment:
- CLIENT_PATH=${CLIENT_PATH}
command: yarn storybook
swagger:
container_name: gran_swagger
build: ./container/swagger
ports:
- 8000:8080
tty: true
stdin_open: true
terraform:
container_name: gran_terraform
build: ./container/terraform
working_dir: /terraform
volumes:
- ./terraform:/terraform:cached
- ./secret:/secret:cached
tty: true
stdin_open: true
environment:
- GOOGLE_CLOUD_KEYFILE_JSON=${TERRAFORM_CREDENTIALS}
- GOOGLE_APPLICATION_CREDENTIALS=${TERRAFORM_CREDENTIALS}