-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
74 lines (71 loc) · 1.84 KB
/
compose.yaml
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
x-name: whereisthegooglecar
version: "3"
services:
# -- App Stack --
# Back-End
bot:
container_name: discord_bot
build:
context: ./bot
volumes:
- ./bot/:/bot
environment:
- TOKEN=${TOKEN}
- GUILD_ID=${GUILD_ID}
- CHANNEL_SUBMISSION_ID=${CHANNEL_SUBMISSION_ID}
- WEBHOOK_SUBMISSION_ID=${WEBHOOK_SUBMISSION_ID}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_IP=${POSTGRES_IP}
- POSTGRES_DB=${POSTGRES_DB}
- REDIS_SERVERLESS_URL=${REDIS_SERVERLESS_URL}
- REDIS_SERVERLESS_TOKEN=${REDIS_SERVERLESS_TOKEN}
- AWS_SECRET_PUBLIC_KEY=${AWS_SECRET_PUBLIC_KEY}
- AWS_SECRET_PRIVATE_KEY=${AWS_SECRET_PRIVATE_KEY}
- AWS_BUCKET_NAME=${AWS_BUCKET_NAME}
- SITE_URL=${SITE_URL}
depends_on:
- db
- redis
- serverless
# -- Database Stack --
# PostgreSQL
db:
container_name: database
image: postgres:16-alpine
restart: always
volumes:
- ./database/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- 5432:5432
# Adminer
adminer:
container_name: adminer
image: adminer
restart: always
ports:
- 8080:8080
# Redis
redis:
container_name: redis
image: redis:6.2-alpine
restart: always
ports:
- 6379:6379
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
# Serverless Redis (to ensure compatibility with upstash-redis & @vercel/kv)
serverless:
container_name: redis-serverless
restart: always
ports:
- "8079:80"
image: hiett/serverless-redis-http:latest
environment:
SRH_MODE: env
SRH_TOKEN: ${REDIS_SERVERLESS_TOKEN}
SRH_CONNECTION_STRING: "redis://redis:6379"