-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
38 lines (35 loc) · 1.03 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
version: '3'
services:
bot:
build:
context: .
dockerfile: Dockerfile
container_name: tiktok-downloader
image: ghcr.io/jag-k/tiktok-downloader:latest
restart: unless-stopped
volumes:
- ./config:/config
- ./data:/data
mongo:
image: mongo:latest
container_name: mongo
environment:
- MONGO_INITDB_DATABASE=video-downloader # database name you want to make
- MONGO_INITDB_ROOT_USERNAME=root # set your container root username
- MONGO_INITDB_ROOT_PASSWORD=root # set vour container root password
ports:
- "27017:27017"
volumes:
- ./config/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- ./data/mongo:/data/db
tty: true
stdin_open: true
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: unless-stopped
volumes:
- $HOME/.docker/config.json:/config.json
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
command: --cleanup --interval 300