-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 863 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 863 Bytes
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
version: '3.9'
services:
mongodb:
image: mongo:5.0.4-focal
ports:
- 27017:27017
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: '${DB_USER}'
MONGO_INITDB_ROOT_PASSWORD: '${DB_PASS}'
volumes:
- mongo-data:/data/db
networks:
- tribalizm
tribalizm-bot:
# NOTE: for tags to work build must be run as yarn script
image: 'tribalizm-bot:${VERSION}'
build:
context: .
dockerfile: ./Dockerfile.bot
restart: always
environment:
DB_HOST: '${DB_HOST}'
DB_USER: '${DB_USER}'
DB_PASS: '${DB_PASS}'
BOT_TOKEN: '${BOT_TOKEN}'
networks:
- tribalizm
admin:
image: 'tribalizm-admin:${VERSION}'
build:
context: .
dockerfile: ./Dockerfile.admin
networks:
tribalizm:
name: tribalizm
volumes:
mongo-data:
driver: local