forked from back4app/parse-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.uffizzi.yml
75 lines (68 loc) · 1.85 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3'
# uffizzi integration
x-uffizzi:
ingress:
service: nginx
port: 8081
continuous_previews:
deploy_preview_when_pull_request_is_opened: true
delete_preview_when_pull_request_is_closed: true
share_to_github: true
services:
postgres:
image: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
ports:
- "5432:5432"
deploy:
resources:
limits:
memory: 1000M
volumes:
- postgres_data:/var/lib/postgresql
parse:
image: parseplatform/parse-server:latest
environment:
- PARSE_SERVER_APPLICATION_ID=parse
- PARSE_SERVER_MASTER_KEY=parse@master123!
- PARSE_SERVER_DATABASE_URI=postgresql://postgres:password@localhost:5432/postgres
- PARSE_SERVER_MOUNT_PATH=/parse
- PORT=1337
ports:
- '1337:1337'
deploy:
resources:
limits:
memory: 1000M
dashboard:
build:
context: .
dockerfile: ./Dockerfile
ports:
- "4040:4040"
environment:
- PARSE_DASHBOARD_MASTER_KEY=parse@master123!
- PARSE_DASHBOARD_APP_ID=parse
- PARSE_DASHBOARD_APP_NAME=PreviewApp
- PARSE_DASHBOARD_USER_ID=user
- PARSE_DASHBOARD_USER_PASSWORD=pass
- MOUNT_PATH=/dashboard
- PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=1
entrypoint: /bin/sh
command:
- "-c"
- "PARSE_DASHBOARD_SERVER_URL=$$UFFIZZI_URL/parse node Parse-Dashboard/index.js"
deploy:
resources:
limits:
memory: 1000M
nginx:
image: nginx:alpine
volumes:
- ./nginx-uffizzi:/etc/nginx
- ./nginx-uffizzi/html:/usr/share/nginx/html
volumes:
postgres_data: