-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 961 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (33 loc) · 961 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
services:
nya-proxy:
build:
context: .
dockerfile: Dockerfile
image: k3scat/nya-proxy:latest
container_name: nya-proxy
restart: unless-stopped
ports:
# Notes: change the host port if conflicting
- "8080:8080"
# Optional: mount a custom config file, if not, you might need to edit the config via the web UI under /config
# volumes:
# - ./config.yaml:/app/config.yaml
environment:
# Notes: CONFIG_PATH only supports relative paths
# - CONFIG_PATH=config.yaml
# Optional: performance boost (safe to ignore if unsupported)
- DOCKER_BUILDKIT=1
- COMPOSE_DOCKER_CLI_BUILD=1
networks:
- nya-proxy-network
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
networks:
nya-proxy-network:
driver: bridge
driver_opts:
# Avoid naming conflicts; optional, WSL-safe
com.docker.network.bridge.name: nya-proxy-br