forked from fdm-monster/fdm-monster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (37 loc) · 1.05 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
services:
mongodb:
image: mongo:7
container_name: mongodb
environment:
# Authenticated variant, comment out for non-authenticated variant:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=fdm-root
ports:
- "21111:27017"
volumes:
- ./fdm-monster:/data
restart: unless-stopped
# docker build --platform linux/amd64,linux/arm64 -t 1.5.0-alpha . -f .\docker\Dockerfile
fdm-monster:
container_name: fdm-monster
image: fdmmonster/fdm-monster:1.5.0-rc2
build:
context: .
dockerfile: docker/Dockerfile
restart: unless-stopped
deploy:
restart_policy:
delay: 5s
max_attempts: 3
window: 120s
ports:
- "4000:4000"
environment:
# Non-authenticated variant:
# - MONGO=mongodb://mongodb:27017/fdm-monster
# Authenticated variant:
- MONGO=mongodb://root:fdm-root@mongodb:27017/fdm-monster?authSource=admin
- NODE_ENV=development
- SERVER_PORT=4000
volumes:
- ./fdm-monster/media/:/app/media