forked from fyrebrick/fyrebrick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (101 loc) · 2.88 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3.8"
services:
fyrebrick:
image: ghcr.io/fyrebrick/fyrebrick:latest
build:
context: .
environment:
#Express port of fyrebrick (e.g 3000)
PORT: 3000
#URI of the fyrebrick-updater-api instance (e.g fyrebrick-updater-api:3030 or localhost:3030)
FYREBRICK_UPDATER_API_URI: fyrebrick-updater-api:3030
#URI of the MongoDB instance (e.g mongodb://mongo:27017/db or mongodb://localhost:3017)
MONGO_DB_URI: mongodb://mongo:27017/fyrebrick
#URI of the redis instance (e.g redis:6379 or localhost:6379)
REDIS_URI: redis:6379
#Login is skipped, no GOOGLE_CLIENT_* envs required
NO_LOGIN: "true"
#Google secret got from apis.google.com (e.g JDAJSDJA_OQWEQWUE18N1) (can be skipped if NO_LOGIN:true)
GOOGLE_CLIENT_SECRET:
#Google secret got from apis.google.com (e.g JDAJSDJA-OQWEQWUE18N1923092304923.apps.googleusercontent.com) (can be skipped if NO_LOGIN:true)
GOOGLE_CLIENT_ID:
#Google redirect URL should be /redirect on the end (can be skipped if NO_LOGIN:true)
GOOGLE_REDIRECT_URL:
#Pick a random secret string as session secret
SESSION_SECRET: 9876ab96c67deaadacbaf876adfb679a8dfbc76bdf6a7bfd8a9df5bc6da59f65d67adf
#Pick a random secret string as cookie secret
COOKIE_SECRET: 98e76cb98ec76987d9876a98c7bc78eac79e876bc987e6c8d7adb6ad78c9ae7be6ceead
#Turns node_env on development if true and shows more logs and errors
DEVELOPMENT: "false"
ports:
- "3000:3000"
deploy:
replicas: 1
depends_on:
- fyrebrick-updater-api
- fyrebrick-updater
- mongo
- redis
networks:
- fyrebrick-net
restart: unless-stopped
fyrebrick-updater:
image: ghcr.io/fyrebrick/fyrebrick-updater:latest
build:
context: .
environment:
DB_URI: mongodb://mongo:27017/fyrebrick
REDIS_URI: redis:6379
deploy:
replicas: 1
depends_on:
- mongo
- redis
networks:
- fyrebrick-net
restart: unless-stopped
fyrebrick-updater-api:
image: ghcr.io/fyrebrick/fyrebrick-updater-api:latest
build:
context: .
environment:
EXPRESS_PORT: 3030
DB_URI: mongodb://mongo:27017/fyrebrick
deploy:
replicas: 1
depends_on:
- mongo
- redis
networks:
- fyrebrick-net
restart: unless-stopped
mongo:
image: registry.hub.docker.com/library/mongo
ports:
- "27017:27017"
deploy:
replicas: 1
networks:
- fyrebrick-net
redis:
image: registry.hub.docker.com/library/redis
ports:
- "6379:6379"
deploy:
replicas: 1
networks:
- fyrebrick-net
restart: unless-stopped
mongo-express:
image: mongo-express
ports:
- "8081:8081"
deploy:
replicas: 1
networks:
- fyrebrick-net
depends_on:
- mongo
restart: unless-stopped
networks:
fyrebrick-net: