-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
65 lines (62 loc) · 1.68 KB
/
Copy pathcompose.yaml
File metadata and controls
65 lines (62 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
app:
image: rust:latest
working_dir: /workspace/server
command: cargo run -p graph-server
environment:
CARGO_HOME: /cargo
CARGO_TARGET_DIR: /cargo-target
DATABASE_URL: mysql://graph:graph@db:3306/graph
PUNISHMENTS_DATABASE_URL: ${PUNISHMENTS_DATABASE_URL:?PUNISHMENTS_DATABASE_URL must be set}
REDIS_URL: redis://redis:6379/
GRAPH_SERVER_ADDR: 0.0.0.0:3000
GRAPH_BOOTSTRAP_API_KEY: ${GRAPH_BOOTSTRAP_API_KEY:-}
R2_ACCESS_KEY_ID: ${R2_ACCESS_KEY_ID:-}
R2_SECRET_ACCESS_KEY: ${R2_SECRET_ACCESS_KEY:-}
R2_ACCOUNT_ID: ${R2_ACCOUNT_ID:-}
R2_ENDPOINT_URL: ${R2_ENDPOINT_URL:-}
R2_BUCKET: ${R2_BUCKET:-}
R2_PUBLIC_URL_BASE: ${R2_PUBLIC_URL_BASE:-}
RUST_LOG: graph_server=info,tower_http=info
ports:
- "3000:3000"
volumes:
- ..:/workspace
- cargo-home:/cargo
- cargo-target:/cargo-target
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
db:
image: mariadb:11.4
environment:
MARIADB_DATABASE: graph
MARIADB_USER: graph
MARIADB_PASSWORD: graph
MARIADB_ROOT_PASSWORD: graph-root
ports:
- "3307:3306"
volumes:
- mariadb-data:/var/lib/mysql
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
interval: 5s
timeout: 5s
retries: 20
start_period: 10s
redis:
image: redis:8-alpine
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 5s
retries: 20
start_period: 5s
volumes:
cargo-home:
cargo-target:
mariadb-data: