-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathdocker-compose-example.yml
More file actions
47 lines (45 loc) · 1.26 KB
/
Copy pathdocker-compose-example.yml
File metadata and controls
47 lines (45 loc) · 1.26 KB
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
services:
bot:
image: gnomeddev/discord-tts-bot
volumes:
- type: bind
source: ./config.toml
target: /config.toml
depends_on:
database:
condition: service_healthy
tts-service:
condition: service_started
restart: unless-stopped
database:
image: postgres:13
ports: [5432:5432]
environment:
POSTGRES_USER: tts
POSTGRES_PASSWORD: tts_password
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tts"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
tts-service:
image: gnomeddev/tts-service
volumes:
- type: bind
source: ./gcp.json
target: /gcp.json
environment:
- IPV6_BLOCK=DISABLE
- LOG_LEVEL=INFO
- BIND_ADDR=0.0.0.0:20310
- GOOGLE_APPLICATION_CREDENTIALS=/gcp.json
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_REGION=${AWS_REGION}
expose: [20310]
restart: unless-stopped
volumes:
db-data: