forked from Lynx-Shortener/Lynx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
46 lines (44 loc) · 1.35 KB
/
docker-compose.dev.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
version: "3"
services:
lynx-db:
image: mongo
restart: always
container_name: lynx-db
environment:
- MONGO_INITDB_ROOT_USERNAME=user
- MONGO_INITDB_ROOT_PASSWORD=paswd
volumes:
- ./db:/data/db
ports:
- 27018:27017
lynx:
image: jackbailey/lynx
build:
context: .
restart: always
ports:
- 3000:3000
depends_on:
- lynx-db
volumes:
- ./backups:/app/backups
environment:
- NODE_ENV=production
- DB_USER=user
- DB_PASSWORD=paswd
- JWT_KEY=1234567890
- URL_LENGTH=8
- URL_SET=standard
- URL_ONLY_UNIQUE=false
- HOME_REDIRECT=/dash/overview
- FORCE_FRONTEND_REDIRECT=false
- ENABLE_REGISTRATION=false # First registration will always be allowed
- DOMAIN=http://example.com
- DEMO=false
- USE_HTTPS=false
- 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=lynx-db
- DB_PORT=27017