2021-09-24 13:29:30 +00:00
|
|
|
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:
|
2022-02-14 04:52:17 +00:00
|
|
|
container_name: {{.ContainerName}}
|
2021-09-24 13:29:30 +00:00
|
|
|
build: .
|
|
|
|
env_file:
|
|
|
|
- env.env
|
|
|
|
secrets:
|
|
|
|
- seed
|
|
|
|
image: {{.ImageAndVersion}}
|
|
|
|
restart: always
|
|
|
|
ports:
|
2021-12-08 09:57:34 +00:00
|
|
|
{{if .ExposedProfilingPort}}
|
2021-09-24 13:29:30 +00:00
|
|
|
- "{{.ExposedProfilingPort}}:6666"
|
2021-12-08 09:57:34 +00:00
|
|
|
{{end}}
|
|
|
|
{{if .ExposedPrometheusPort}}
|
2021-09-24 13:29:30 +00:00
|
|
|
- "{{.ExposedPrometheusPort}}:2111"
|
2021-12-08 09:57:34 +00:00
|
|
|
{{end}}
|
|
|
|
{{if .ExposedDataFolderPort}}
|
2021-09-24 13:29:30 +00:00
|
|
|
- "{{.ExposedDataFolderPort}}:8090"
|
2021-12-08 09:57:34 +00:00
|
|
|
{{end}}
|
|
|
|
{{if .ExposedTcpListenerPort}}
|
2021-09-24 13:29:30 +00:00
|
|
|
- "{{.ExposedTcpListenerPort}}:8091"
|
2021-12-08 09:57:34 +00:00
|
|
|
{{end}}
|
|
|
|
{{if .ExposedHttpListenerPort}}
|
2021-09-24 13:29:30 +00:00
|
|
|
- "{{.ExposedHttpListenerPort}}:8092"
|
2021-12-08 09:57:34 +00:00
|
|
|
{{end}}
|
2021-09-24 13:29:30 +00:00
|
|
|
volumes:
|
|
|
|
# - {{.NkeySeedFile}}:/app/seed.txt
|
|
|
|
- {{.SocketFolder}}:/app/tmp/:rw
|
2022-02-14 04:52:17 +00:00
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "10m"
|
|
|
|
max-file: "10"
|
2021-09-24 13:29:30 +00:00
|
|
|
|
|
|
|
secrets:
|
|
|
|
seed:
|
|
|
|
file: {{.NkeySeedFile}}
|