This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (96 loc) · 2.82 KB
/
docker-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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
api:
image: zwsim/zws:2.20.1
restart: unless-stopped
init: true
expose:
- "3000"
links:
- db
depends_on:
- migration
env_file: ./.env
environment:
SHORT_LENGTH: "7"
SHORT_CHARS: '["\u200c","\u200d","\udb40\udc61","\udb40\udc62","\udb40\udc63","\udb40\udc64","\udb40\udc65","\udb40\udc66","\udb40\udc67","\udb40\udc68","\udb40\udc69","\udb40\udc6a","\udb40\udc6b","\udb40\udc6c","\udb40\udc6d","\udb40\udc6e","\udb40\udc6f","\udb40\udc70","\udb40\udc71","\udb40\udc72","\udb40\udc73","\udb40\udc74","\udb40\udc75","\udb40\udc76","\udb40\udc77","\udb40\udc78","\udb40\udc79","\udb40\udc7a","\udb40\udc7f"]'
SHORT_REWRITES: '{"\u180e": "\u200c", "\u200b": "\u200d"}'
PORT: "3000"
HOSTNAME: zws.im
SHORTENED_BASE_URL: https://zws.im
BLOCKED_HOSTNAMES: '["api.zws.im", "zws.im", "webapps-customserve.cloudns.cl", "aliyuncs.com", "6000c.xyz", "82083b.onelink.me", "m1937.com", "subcon.py6.pw", "sub.xeton.dev", "doisnet.com", "iplogger.org", "moneyonlineinvestment.com", "findyourlovemate.com", "golead7.co.uk", "myqcloud.com", "eprofitsmaster.com", "storageapi.fleek.co", "geetikamanucha.com", "com-o.cz", "axomiumdemo.com", "jourumbuffon.com", "kinaseseed.com", "bre.is"]'
GOOGLE_PROJECT_ID: zero-width-shortener
GOOGLE_APPLICATION_CREDENTIALS: /etc/google-service-account.json
volumes:
- ./google-service-account.json:/etc/google-service-account.json:ro
migration:
image: zwsim/zws:2.20.1
init: true
links:
- db
env_file: ./.env
command: ["yarn", "run", "migrations"]
db:
image: postgres:13.11
env_file: ./db.env
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
ports:
- "5432:5432"
backup:
build: ./backup
init: true
env_file:
- ./backup.env
- ./.env
links:
- db
restart: unless-stopped
monitoror:
image: monitoror/monitoror:4
env_file: ./monitoror.env
restart: unless-stopped
volumes:
- ./monitoror.json:/bin/config.json:ro
expose:
- "8080"
links:
- api
environment:
MO_CONFIG: ./config.json
metabase:
image: metabase/metabase
env_file: ./metabase.env
restart: unless-stopped
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: "5432"
MB_DB_HOST: db
links:
- db
expose:
- "3000"
caddy:
build: ./caddy
env_file: ./caddy.env
restart: unless-stopped
ports:
- "80:80"
- "443:443"
links:
- api
- monitoror
- metabase
volumes:
- caddy_data:/data
- caddy_config:/config
watchtower:
image: containrrr/watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
caddy_data:
caddy_config:
db: