-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathtest-compose.yml
64 lines (56 loc) · 1.49 KB
/
test-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
# 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/UffizziCloud/example-voting-result#main
dockerfile: Dockerfile
environment:
PORT: 8088
vote:
build:
context: https://github.com/UffizziCloud/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:
- nginx-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