forked from digitopvn/diginext
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.example.yaml
More file actions
58 lines (58 loc) · 1.78 KB
/
docker-compose.dev.example.yaml
File metadata and controls
58 lines (58 loc) · 1.78 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
version: "3"
networks:
bridge:
driver: bridge
volumes:
home:
node:
services:
mongo:
ports:
- '27017:27017'
container_name: mongo
restart: always
logging:
driver: none
networks:
- bridge
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=diginext
image: mongo
volumes:
- ./storage/mongo:/data/db
diginext:
container_name: diginext
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /usr/app/
ports:
- "6969:6969"
networks:
- bridge
entrypoint: /usr/app/scripts/startup-dev.sh
volumes:
# docker.sock -> comment this out if you're using PODMAN
- "/var/run/docker.sock:/var/run/docker.sock"
# Persist NODE_MODULES & HOME DIR with anomyous volumes
# - /usr/app/node_modules/
# - /home/app/
# Persist NODE_MODULES & HOME DIR with named Docker volume
- node:/usr/app/node_modules/
- home:/home/app/
# Persist data with host path -> HOST:CONTAINER
- ./src:/usr/app/src
- ./public:/usr/app/public
- ./storage:/var/app/storage
- ./scripts:/usr/app/scripts
environment:
- NODE_ENV=development
- PORT=6969
- BASE_URL=http://localhost:6969
- DB_URI=mongodb://root:diginext@mongo:27017/diginext?authSource=admin
- CLI_MODE=server
- JWT_SECRET= # <--- insert here
- JWT_EXPIRE_TIME=48h
- GOOGLE_CLIENT_ID= # <--- insert here
- GOOGLE_CLIENT_SECRET= # <--- insert here