-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
70 lines (70 loc) · 1.98 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
version: "3.8"
volumes:
clickhouse-persistence:
services:
redis:
image: redis:alpine
bot:
build: .
restart: on-failure
depends_on:
- redis
stop_grace_period: 20s
extra_hosts:
- host.docker.internal:host-gateway
environment:
- DISCORD_TOKEN
- COMMAND_PREFIX
- COMMAND_COOLDOWN_PER_USER_IN_SECONDS
- GOOGLE_KEY
- GOOGLE_CUSTOM_SEARCH_ENGINE_ID
- GOODREADS_KEY
- TMDB_KEY
- LAST_FM_KEY
- WOLFRAM_ALPHA_APP_ID
- OPENAI_API_KEY
- PERPLEXITY_API_KEY
- DISCO_MAX_FILE_SIZE_IN_MIB
- SENTRY_DSN
- SENTRY_AUTH_TOKEN
- SENTRY_ORG
- DATABASE_URL
- CLICKHOUSE_URL
- CLICKHOUSE_USER
- CLICKHOUSE_PASSWORD
- CLICKHOUSE_DATABASE
- REDIS_URL=redis://redis:6379/
web:
build: web
depends_on:
- redis
environment:
- REDIS_URL=redis://redis:6379/
labels:
- traefik.enable=true
- traefik.http.routers.web.rule=Host(`somsiad.net`)
- traefik.http.routers.web.entrypoints=websecure
- traefik.http.routers.web.tls=true
- traefik.http.routers.web.tls.certresolver=le
router:
image: "traefik:v3.2"
depends_on:
- web
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.http.redirections.entryPoint.to=websecure
- --entrypoints.web.http.redirections.entryPoint.scheme=https
- --entrypoints.web.http.redirections.entrypoint.permanent=true
- --certificatesresolvers.le.acme.httpchallenge=true
- --certificatesresolvers.le.acme.httpchallenge.entrypoint=web
- --certificatesresolvers.le.acme.storage=/letsencrypt/acme.json
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./letsencrypt:/letsencrypt"