mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 01:43:40 -05:00
- Docker compose file uses Consul version - add environment variable to disable chmod on Docker container start https://github.com/hashicorp/docker-consul/issues/20 - Update consul permissions on disk
16 lines
395 B
Django/Jinja
16 lines
395 B
Django/Jinja
version: '3.9'
|
|
|
|
services:
|
|
consul:
|
|
image: consul:{{ consul_version }}
|
|
hostname: consul
|
|
container_name: consul
|
|
network_mode: "host"
|
|
environment:
|
|
- CONSUL_DISABLE_PERM_MGMT=
|
|
volumes:
|
|
- /volume1/docker/consul/data:/consul/data
|
|
- /volume1/docker/consul/config:/consul/config
|
|
command: consul agent -config-dir=/consul/config
|
|
restart: unless-stopped
|