forked from UffizziCloud/example-voting-worker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uffizzi-compose-2.yml
47 lines (40 loc) · 962 Bytes
/
uffizzi-compose-2.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
services:
redis:
image: redis:latest
postgres:
image: postgres:9.6
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
nginx:
image: nginx:latest
configs:
- source: vote.conf
target: /etc/nginx/conf.d
worker:
build:
context: https://github.com/UffizziCloud/example-voting-worker:main
dockerfile: Dockerfile
deploy:
resources:
limits:
memory: 250M
vote:
build:
context: https://github.com/UffizziCloud/example-voting-vote:main
dockerfile: Dockerfile
deploy:
resources:
limits:
memory: 250M
result:
build:
context: https://github.com/UffizziCloud/example-voting-result:main
dockerfile: Dockerfile
continuous_preview:
deploy_preview_when_pull_request_is_opened: true
delete_preview_when_pull_request_is_closed: true
share_to_github: true
ingress:
service: nginx
port: 8080