forked from digitopvn/diginext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yaml
More file actions
59 lines (59 loc) · 1.58 KB
/
Copy pathdocker-compose.example.yaml
File metadata and controls
59 lines (59 loc) · 1.58 KB
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
version: "3"
networks:
bridge:
driver: bridge
volumes:
mongo:
name: mongo
home:
node:
services:
mongo:
ports:
- '27017'
container_name: mongo
restart: always
logging:
options:
max-size: 1g
networks:
- bridge
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=diginext
image: mongo
volumes:
- mongo:/data/db
diginext:
image: "digitop/diginext:latest"
container_name: diginext
working_dir: /usr/app/
ports:
- "6969:6969"
restart: unless-stopped
depends_on:
- mongo
networks:
- bridge
privileged: true
user: root
entrypoint: /usr/app/scripts/startup.sh
volumes:
# DOCKER SOCK
- "/var/run/docker.sock:/var/run/docker.sock"
# CACHE NODE_MODULES & HOME DIR
- node:/usr/app/node_modules/
- home:/home/app/
# HOST:CONTAINER
- ./storage:/var/app/storage
environment:
- NODE_ENV=production
- PORT=6969
- BASE_URL=http://localhost:6969
- DB_URI=mongodb://root:diginext@mongo:27017/diginext?authSource=admin
- CLI_MODE=server
- BUILDER=docker
- JWT_SECRET= # <--- insert here
- JWT_EXPIRE_TIME=48h
- GOOGLE_CLIENT_ID= # <--- insert here
- GOOGLE_CLIENT_SECRET= # <--- insert here