-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (74 loc) · 1.67 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
version: "3.7" # optional since v1.27.0
services:
ytmp3-host-tg-bot:
build:
context: .
dockerfile: ./Dockerfile
image: ytmp3-host-go
depends_on:
- redis
networks:
- goapp
environment:
- TG_BOT_TOKEN=${TG_BOT_TOKEN}
- TG_BOT_CHANNEL_ID=${TG_BOT_CHANNEL_ID}
- FIBER_URL=${FIBER_URL}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASS=${REDIS_PASS}
- REDIS_DB=${REDIS_DB}
- ALLOWED_IPS=${ALLOWED_IPS}
- CONTAINER_TYPE=bot
extra_hosts:
- "host.docker.internal:host-gateway"
ytmp3-host-go:
build:
context: .
dockerfile: ./Dockerfile
image: ytmp3-host-go
ports:
- "5001"
depends_on:
- redis
networks:
- goapp
environment:
- TG_BOT_TOKEN=${TG_BOT_TOKEN}
- TG_BOT_CHANNEL_ID=${TG_BOT_CHANNEL_ID}
- FIBER_URL=${FIBER_URL}
- FIBER_HOSTNAME=${FIBER_HOSTNAME}
- FIBER_PORT=5001
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASS=${REDIS_PASS}
- REDIS_DB=${REDIS_DB}
- ALLOWED_IPS=${ALLOWED_IPS}
deploy:
replicas: 5
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
image: redis:latest
command: --port ${REDIS_PORT}
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
networks:
- goapp
restart: unless-stopped
nginx:
image: nginx:latest
volumes:
- ./configs/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- ytmp3-host-go
environment:
- PORT=8090
- NGINX_PORT=8090
ports:
- "8090:8090"
networks:
- goapp
networks:
goapp:
driver: bridge
##