-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.dev.yml
87 lines (87 loc) · 2.01 KB
/
docker-compose.dev.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
version: "3.8"
services:
postgres:
environment:
POSTGRES_DB: somsiad
POSTGRES_PASSWORD: somsiad
POSTGRES_USER: somsiad
POSTGRES_EXTENSIONS: pg_trgm
build:
context: .
dockerfile: postgres.Dockerfile
ports:
- "5432:5432"
clickhouse:
build:
context: .
dockerfile: clickhouse/Dockerfile
environment:
CLICKHOUSE_DB: somsiad
CLICKHOUSE_USER: somsiad
CLICKHOUSE_PASSWORD: somsiad
redis:
image: redis:alpine
bot:
build: .
command: ["python", "-m", "jurigged", "run.py"]
volumes:
- ./:/code/
restart: on-failure
stop_grace_period: 20s
depends_on:
- postgres
- clickhouse
- redis
links:
- postgres:postgres
- clickhouse:clickhouse
- redis:redis
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
- DISCO_MAX_FILE_SIZE_IN_MIB
- SENTRY_DSN
- SENTRY_AUTH_TOKEN
- SENTRY_ORG
- OPENAI_API_KEY
- PERPLEXITY_API_KEY
- PTVSD
- DATABASE_URL=postgresql://somsiad:somsiad@postgres/somsiad
- CLICKHOUSE_URL=http://clickhouse:8123
- CLICKHOUSE_USER=somsiad
- CLICKHOUSE_PASSWORD=somsiad
- CLICKHOUSE_DATABASE
- REDIS_URL=redis://redis:6379/
web:
build: web
depends_on:
- redis
links:
- redis:redis
environment:
- REDIS_URL=redis://redis:6379/
labels:
- traefik.enable=true
- traefik.http.routers.web.rule=Host(`localhost`)
volumes:
- ./web/:/code/
router:
image: "traefik:v2.4"
depends_on:
- web
command:
- --entrypoints.web.address=:80
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --api.insecure
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"