forked from Lynx-Shortener/Lynx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1.08 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
version: "3"
services:
db:
image: mongo
restart: always
environment:
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${DB_PASSWORD}
volumes:
- ./db:/data/db
lynx:
image: jackbailey/lynx:1
restart: always
ports:
- 3000:3000
depends_on:
- db
volumes:
- ./backups:/app/backups
environment:
- NODE_ENV=production
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- JWT_KEY=${JWT_KEY}
- URL_LENGTH=8
- URL_SET=standard
- URL_ONLY_UNIQUE=false
- HOME_REDIRECT=/dash/overview
- FORCE_FRONTEND_REDIRECT=false
- ENABLE_REGISTRATION=true # First registration will always be allowed
- DOMAIN=https://s.hmif.dev
- DEMO=false
- USE_HTTPS=true
- CORS=*
- BACKUP=true
- BACKUP_SCHEDULE=* * * * * # Use crontab.guru to create
- BACKUP_COUNT=5 # A count of 1 will make a backup file called backup.json
## DO NOT CHANGE THESE:
- DB_HOST=db
- DB_PORT=27017