1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2025-01-08 05:09:15 +00:00
ctrl/scripts/steward/create-docker-compose-files/docker-compose.yml.tpl
2021-12-08 10:57:34 +01:00

36 lines
No EOL
862 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:
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
secrets:
seed:
file: {{.NkeySeedFile}}