blob: e2dde2a36926320cc8b3b0402b967410898facc6 (
plain)
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
|
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: aigw
POSTGRES_PASSWORD: aigw
POSTGRES_DB: aigw
ports:
- "127.0.0.1:5432:5432"
volumes:
- aigw-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aigw -d aigw"]
interval: 5s
timeout: 3s
retries: 20
redis:
image: redis:7-alpine
ports:
- "127.0.0.1:6379:6379"
volumes:
- aigw-redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
aigw:
image: aigw-debug:local
build: .
depends_on:
postgres:
condition: service_healthy
ports:
- "127.0.0.1:8080:8080"
environment:
AIGW_DATABASE_URL: postgres://aigw:aigw@postgres:5432/aigw?sslmode=disable
AIGW_REDIS_URL: redis://redis:6379/0
AIGW_CREDENTIAL_KEY: ${AIGW_CREDENTIAL_KEY:?set AIGW_CREDENTIAL_KEY}
AIGW_ADMIN_TOKEN: ${AIGW_ADMIN_TOKEN:?set AIGW_ADMIN_TOKEN}
AIGW_STRIPE_API_KEY: ${AIGW_STRIPE_API_KEY:?set AIGW_STRIPE_API_KEY}
AIGW_STRIPE_WEBHOOK_SECRET: ${AIGW_STRIPE_WEBHOOK_SECRET:?set AIGW_STRIPE_WEBHOOK_SECRET}
volumes:
- ./config.control.example.json:/etc/aigw/config.json:ro
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://127.0.0.1:8080/readyz"]
interval: 3s
timeout: 2s
retries: 20
start_period: 5s
volumes:
aigw-postgres:
aigw-redis:
|