-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
75 lines (64 loc) · 1.78 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
services:
web:
image: ghcr.io/theindexmoe/index
container_name: index-web
restart: unless-stopped
ports:
- '3033:3033'
environment:
NEXT_PUBLIC_SITE_NAME: ${NEXT_PUBLIC_SITE_NAME}
# domain url for sessions
NEXTAUTH_URL: ${NEXTAUTH_URL}
NEXT_PUBLIC_DOMAIN: ${NEXT_PUBLIC_DOMAIN}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
# provide your own url to your own db setup
DATABASE_URL: ${DATABASE_URL}
# provide your own url to your own redis setup
CACHE_URL: ${CACHE_URL}
# pass your own running chrome instance
CHROME_URL: ${CHROME_URL}
AUDIT_WEBHOOK: ${AUDIT_WEBHOOK}
# OAuth2
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET}
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
# Setup login whitelist
SETUP_WHITELIST_DISCORD_ID: ${SETUP_WHITELIST_DISCORD_ID}
depends_on:
- mongo
- redis
- chrome
mongo:
image: mongo
container_name: index-db
restart: unless-stopped
volumes:
- ./db:/data/db
ports:
- '27017:27017'
redis:
image: redis
container_name: index-cache
restart: unless-stopped
ports:
- '6379:6379'
chrome:
image: browserless/chrome
container_name: index-chrome
restart: unless-stopped
ports:
- '3300:3300'
# this will not run if not explicitly called via docker-compose --profile dev
mongo-express:
image: mongo-express
container_name: mongo-express
profiles:
- 'dev'
environment:
ME_CONFIG_BASICAUTH_USERNAME: ${ME_CONFIG_BASICAUTH_USERNAME}
ME_CONFIG_BASICAUTH_PASSWORD: ${ME_CONFIG_BASICAUTH_PASSWORD}
ME_CONFIG_SITE_GRIDFS_ENABLED: 'true'
ports:
- '8081:8081'
depends_on:
- mongo