-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
90 lines (86 loc) · 2.03 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
voicevox:
ports:
- 50021:50021
image: voicevox/voicevox_engine:cpu-ubuntu20.04-0.18.1
seitai:
build:
context: .
target: development
tty: true
volumes:
- type: bind
source: Cargo.lock
target: /usr/src/myapp/Cargo.lock
- type: bind
source: Cargo.toml
target: /usr/src/myapp/Cargo.toml
- type: bind
source: crates
target: /usr/src/myapp/crates
- type: bind
source: seitai
target: /usr/src/myapp/seitai
- type: bind
source: restarter
target: /usr/src/myapp/restarter
command: /bin/sh -c 'cargo run -p seitai'
environment:
DISCORD_TOKEN:
VOICEVOX_HOST: voicevox
KANATRANS_HOST: kanatrans
KANATRANS_PORT: 8080
PGHOST: database
PGDATABASE: seitai
PGUSER: seitai
PGPASSWORD: seitai
restarter:
build:
context: .
target: development
tty: true
volumes:
- type: bind
source: Cargo.lock
target: /usr/src/myapp/Cargo.lock
- type: bind
source: Cargo.toml
target: /usr/src/myapp/Cargo.toml
- type: bind
source: crates
target: /usr/src/myapp/crates
- type: bind
source: seitai
target: /usr/src/myapp/seitai
- type: bind
source: restarter
target: /usr/src/myapp/restarter
command: /bin/sh -c 'cargo run -p restarter'
environment:
DISCORD_TOKEN:
kanatrans:
image: ghcr.io/hexium310/kanatrans
environment:
KANATRANS_PORT: 8080
RUST_LOG: kanatrans=info
ports:
- 8080:8080
database:
image: postgres:16
environment:
POSTGRES_DB: seitai
POSTGRES_USER: seitai
POSTGRES_PASSWORD: seitai
ports:
- '5432:5432'
volumes:
- type: bind
source: ./database
target: /docker-entrypoint-initdb.d
read_only: true
- type: volume
source: database
target: /var/lib/postgresql/data
volumes:
database:
driver: local