1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-15 17:51:15 +00:00
ctrl/scripts/nats-server/create-docker-compose-files/docker-compose.yml.tpl

21 lines
No EOL
464 B
Smarty

version: "3"
services:
nats-server:
container_name: {{.ContainerName}}
build: .
env_file:
- env.env
image: {{.ImageAndVersion}}
restart: always
ports:
- "{{.ExposedNatsPort}}:4222"
volumes:
- {{.NatsConfPath}}:/app/nats-server.conf
- {{.LeCertPath}}:/app/le.crt
- {{.LeKeyPath}}:/app/le.key
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"