-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.reverse-proxy.yml
94 lines (89 loc) · 2.35 KB
/
docker-compose.reverse-proxy.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
reverseproxy.dev:
restart: always
image: nginxproxy/nginx-proxy:1.5.1
ports:
- "80:80"
# - 127.0.0.1:443:443
volumes:
- ./resources/reverse-proxy/default.conf:/etc/nginx/conf.d/custom-settings.conf:ro
- ./_data/html:/usr/share/nginx/html:rw
- ./_data/certs:/etc/nginx/certs:rw
- ./_data/logs:/var/log/nginx:rw
- /var/run/docker.sock:/tmp/docker.sock:ro
environment:
DEFAULT_HOST: liexp.dev
networks:
- reverseproxy
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
env_file:
- ./services/api/.env.local
environment:
# TELEGRAM_STAT: 1
TELEGRAM_VERBOSITY: 1
TELEGRAM_LOCAL: "true"
TELEGRAM_HTTP_IP_ADDRESS: "[::]"
# VIRTUAL_HOST: telegram.liexp.dev
# VIRTUAL_PORT: 8081
tty: false
stdin_open: true
volumes:
- telegram-bot-api-data:/var/lib/telegram-bot-api
ports:
- "127.0.0.1:8081:8081"
# - "127.0.0.1:8082:8082" # stats address
restart: always
logging:
driver: "json-file"
options:
max-file: 5
max-size: 10m
networks:
- reverseproxy
telegram.liexp.dev:
restart: always
image: nginx:1.25.4-alpine
volumes:
- ./resources/nginx/telegram-bot-api-dev.conf:/etc/nginx/conf.d/default.conf:ro
environment:
NGINX_SERVER_NAME: telegram.liexp.dev
VIRTUAL_HOST: telegram.liexp.dev
VIRTUAL_PORT: 9008
depends_on:
- telegram-bot-api
ports:
- "127.0.0.1:9008:9008"
networks:
- reverseproxy
localai.liexp.dev:
# image: localai/localai:latest-aio-cpu
# For Intel GPUs decomment the following:
image: localai/localai:latest-aio-gpu-intel-f16
# image: localai/localai:v2.15.0-sycl-f16-ffmpeg
# For Phi2 models decomment the following:
# image: localai/localai:v2.15.0-ffmpeg-core phi-2
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/readyz"]
interval: 1m
timeout: 20m
retries: 5
ports:
- '8080:8080'
tty: true
environment:
DEBUG: true
# REBUILD: true
VIRTUAL_HOST: localai.liexp.dev
VIRTUAL_PORT: 8080
volumes:
- ./models:/build/models:cached
devices:
- /dev/dri
networks:
- reverseproxy
networks:
reverseproxy:
external: true
volumes:
telegram-bot-api-data: {}