This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
63 lines (55 loc) · 1.53 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
version: '3.4'
services:
# IMPORTANT: ONLY HAVE **ONE** OF THE FOLLOWING 3 ENABLED AT ONCE
palera1n-bot:
container_name: palera1n-bot
build:
context: .
dockerfile: Dockerfile
# network: host # comment this out if you want to use dockerized mongo
restart: always
ports:
- 8096:8096
volumes:
- ./bot_data:/app/bot_data
# network_mode: host # comment this out if you want to use dockerized mongo
# also, if you want to use dockerized Mongo you need to change DB_HOST to "mongo" in .env
migrate:
container_name: migrate
build:
context: .
dockerfile: Dockerfile.migrate
restart: never
setup:
container_name: setup
build:
context: .
dockerfile: Dockerfile.setup
restart: never
#####
##### uncomment the following to use dockerized mongo
depends_on:
- mongo
mongo:
image: mongo
restart: always
ports:
- 127.0.0.1:27017:27017
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- ./mongo_data:/data/db
# #### This is optional if you want a GUI to manage your database
# #### Only applicable with Dockerized mongo
# #### If you run this, USE A FIREWALL or the database will be accessible from the internet
# ### The database is running in unauthenticated mode.
# mongo-express:
# image: mongo-express
# restart: unless-stopped
# depends_on:
# - mongo
# ports:
# - 6700:8081
# environment:
# ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/