-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 825 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 825 Bytes
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
version: '3.8'
networks:
# Use external network named bedrock-network
bedrock-network:
external: true
services:
bedrock-proxy:
# Build from current directory
build: .
# Set container name
container_name: bedrock-proxy
# Connect to external network
networks:
- bedrock-network
# Map port 2333 from container to host
ports:
- "2333:2333"
# Mount configuration file
volumes:
- ./config.toml:/etc/bedrock/proxy.toml:ro
# Set environment variables
environment:
- RUST_LOG=info
- RUST_BACKTRACE=1
# Set restart policy
restart: unless-stopped
# Configure health check
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:2333/health", "||", "exit", "1"]
interval: 30s
timeout: 10s
retries: 3