forked from zipofar/example-voting-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.uffizzi.yml
More file actions
66 lines (57 loc) · 1.53 KB
/
docker-compose.uffizzi.yml
File metadata and controls
66 lines (57 loc) · 1.53 KB
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
# Uffizzi extension
x-uffizzi:
ingress: # required
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: . # defaults to ./Dockerfile
deploy:
resources:
limits:
memory: 250M
result:
build:
context: https://github.com/zipofar/example-voting-result#main
dockerfile: Dockerfile
environment:
PORT: 8088
vote:
build:
context: https://github.com/zipofar/example-voting-vote # defaults to "Default branch" as set in GitHub (usually main/master)
dockerfile: Dockerfile
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: ./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