-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
78 lines (74 loc) · 1.94 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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.4
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
fdm-monster-alpha:
container_name: fdm-monster-develop
image: fdmmonster/fdm-monster:develop
build:
context: .
dockerfile: docker/Dockerfile
restart: unless-stopped
deploy:
restart_policy:
delay: 5s
max_attempts: 3
window: 120s
ports:
- "4001:4001"
environment:
- NODE_ENV=development
- SERVER_PORT=4001
volumes:
- ./fdm-monster-alpha/media/:/app/media
- ./fdm-monster-alpha/database/:/app/database
fdm-monster-sqlite:
container_name: fdm-monster-sqlite
image: fdmmonster/fdm-monster:1.6.2-sqlite # -arm64
restart: unless-stopped
ports:
- "4000:4000"
environment:
- NODE_ENV=development
- SERVER_PORT=4000
volumes:
- fdmm-media:/app/media
- fdmm-database:/app/database
volumes:
fdmm-media:
name: fdmm-media
fdmm-database:
name: fdmm-database