-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.28 KB
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
version: '3.7'
services:
app:
build:
context: .
dockerfile: Dockerfile.multi
image: kvnxo/fileslink:latest
container_name: fileslink-app
depends_on:
- nginx
- fasttelethon
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./files:/app/files
- ./config:/app/config
env_file:
- .env
environment:
- FASTTELETHON_URL=http://fasttelethon:8001
fasttelethon:
build:
context: ./python_service
dockerfile: Dockerfile
image: fileslink-fasttelethon:latest
container_name: fileslink-fasttelethon
restart: unless-stopped
ports:
- "8001:8001"
volumes:
- ./python_service/sessions:/app/sessions
env_file:
- .env
environment:
- SESSION_NAME=/app/sessions/fasttelethon_session
telegram-bot-api:
container_name: fileslink-tg-api
image: aiogram/telegram-bot-api:latest
restart: unless-stopped
volumes:
- ./telegram-bot-api-data:/var/lib/telegram-bot-api
env_file:
- .env
nginx:
container_name: fileslink-nginx
image: nginx:1.19-alpine
restart: unless-stopped
depends_on:
- telegram-bot-api
volumes:
- ./telegram-bot-api-data:/var/lib/telegram-bot-api
- ./nginx:/etc/nginx/conf.d/