mirror of
https://github.com/postmannen/ctrl.git
synced 2024-12-14 12:37:31 +00:00
42 lines
No EOL
1,014 B
Smarty
42 lines
No EOL
1,014 B
Smarty
version: "3.1"
|
|
|
|
# docker run -it --rm -v '/home/bt/docker/steward/wireguard:/etc/wireguard' --env-file env.env steward:0.1.6
|
|
|
|
services:
|
|
steward:
|
|
container_name: {{.ContainerName}}
|
|
build: .
|
|
env_file:
|
|
- env.env
|
|
secrets:
|
|
- seed
|
|
image: {{.ImageAndVersion}}
|
|
restart: always
|
|
ports:
|
|
{{if .ExposedProfilingPort}}
|
|
- "{{.ExposedProfilingPort}}:6666"
|
|
{{end}}
|
|
{{if .ExposedPrometheusPort}}
|
|
- "{{.ExposedPrometheusPort}}:2111"
|
|
{{end}}
|
|
{{if .ExposedDataFolderPort}}
|
|
- "{{.ExposedDataFolderPort}}:8090"
|
|
{{end}}
|
|
{{if .ExposedTcpListenerPort}}
|
|
- "{{.ExposedTcpListenerPort}}:8091"
|
|
{{end}}
|
|
{{if .ExposedHttpListenerPort}}
|
|
- "{{.ExposedHttpListenerPort}}:8092"
|
|
{{end}}
|
|
volumes:
|
|
# - {{.NkeySeedFile}}:/app/seed.txt
|
|
- {{.SocketFolder}}:/app/tmp/:rw
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "10"
|
|
|
|
secrets:
|
|
seed:
|
|
file: {{.NkeySeedFile}} |