-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (53 loc) · 1.35 KB
/
docker-compose.yaml
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
version: '3.3'
services:
db:
image: mariadb:latest
volumes:
- dbvol:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: punyshort
MYSQL_DATABASE: punyshort
MYSQL_USER: punyshort
MYSQL_PASSWORD: punyshort
backend:
depends_on:
- db
image: interaapps/pastefy-backend:latest
ports:
- "81:80"
environment:
HTTP_SERVER_PORT: 80
HTTP_SERVER_CORS: "*"
DATABASE_DRIVER: mysql
DATABASE_NAME: punyshort
DATABASE_USER: punyshort
DATABASE_PASSWORD: punyshort
DATABASE_HOST: db
DATABASE_PORT: 3306
SERVER_NAME: "https://{SERVER}:81"
OAUTH2_PROVIDER_CLIENT_ID: {CLIENT_ID}
OAUTH2_PROVIDER_CLIENT_SECRET:
PUNYSHORT_DEFAULT_REDIRECT_PROXY:
PUNYSHORT_DEFAULT_CNAME:
frontend:
depends_on:
- backend
image: interaapps/pastefy-backend:latest
ports:
- "80:80"
environment:
PUNYSHORT_FRONTEND_API: https://{SERVER}:81
PUNYSHORT_FRONTEND_CLIENT_ID: CLIENT_ID
redirect_proxy:
depends_on:
- backend
image: interaapps/punyshort-redirect-proxy:latest
ports:
- "83:80"
environment:
PUNYSHORT_BASE_URL: http://db:81
PUNYSHORT_KEY: API_KEY
PUNYSHORT_ERROR_URL: https://{SERVER}:81/error-page
PUNYSHORT_IP_FORWARDING: true
volumes:
dbvol: