forked from UffizziCloud/example-voting-app-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.uffizzi.yml
61 lines (53 loc) · 1.28 KB
/
docker-compose.uffizzi.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
# Uffizzi extension
x-uffizzi:
ingress:
service: loadbalancer
port: 8080
continuous_preview:
deploy_preview_when_pull_request_is_opened: true
delete_preview_when_pull_request_is_closed: true
share_to_github: true
# Vote applicaiton
services:
redis:
image: redis:latest
postgres:
image: postgres:9.6
secrets:
- pg_user
- pg_password
worker:
build: ./worker
deploy:
resources:
limits:
memory: 250M
result:
build: ./result
environment:
PORT: 8088
vote:
build: ./vote
deploy:
resources:
limits:
memory: 250M
environment:
PORT: 8888
loadbalancer:
image: nginx:latest
configs:
- source: nginx-vote-conf
target: /etc/nginx/conf.d/vote.conf
# Loadbalancer configuration
configs:
nginx-vote-conf:
file: ./loadbalancer/vote.conf
# Postgres credentials
secrets:
pg_user:
external: true # indicates value is external to this repository
name: "POSTGRES_USER" # i.e., value should be added in the Uffizzi Dashboard
pg_password:
external: true # indicates value is external to this repository
name: "POSTGRES_PASSWORD" # i.e., value should be added in the Uffizzi Dashboard