diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 00:10:22 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-05-04 00:35:51 -0700 |
commit | c3e9305bce9fd1aaf165779fb46570c683750e6f (patch) | |
tree | dcc01e3d35abd0647f7a053a00d9e3f1f91072d1 /playbooks/roles/test/templates | |
parent | 7106b304324b3a7c4dc5fa25432f08041cbc41cb (diff) | |
download | infra-c3e9305bce9fd1aaf165779fb46570c683750e6f.tar.gz infra-c3e9305bce9fd1aaf165779fb46570c683750e6f.zip |
Tried to use docker ingress to solve x-real-ip on mail daemon but it didn't work for other ports
Diffstat (limited to 'playbooks/roles/test/templates')
-rw-r--r-- | playbooks/roles/test/templates/stacks/docker-compose.yml | 30 | ||||
-rw-r--r-- | playbooks/roles/test/templates/volumes/data/.gitkeep | 0 |
2 files changed, 30 insertions, 0 deletions
diff --git a/playbooks/roles/test/templates/stacks/docker-compose.yml b/playbooks/roles/test/templates/stacks/docker-compose.yml new file mode 100644 index 0000000..52f220f --- /dev/null +++ b/playbooks/roles/test/templates/stacks/docker-compose.yml @@ -0,0 +1,30 @@ +services: + test: + image: traefik/whoami:latest + volumes: + - {{ test_base }}/volumes/data:/data + environment: + - TZ={{ timezone }} + - DEPLOYMENT_TIME={{ deployment_time }} + networks: + - proxy + deploy: + mode: replicated + update_config: + parallelism: 1 + failure_action: rollback + order: start-first + delay: 5s + replicas: 1 + labels: + - traefik.enable=true + - traefik.swarm.network=proxy + - traefik.http.routers.test.tls=true + - traefik.http.routers.test.tls.certResolver=letsencrypt + - traefik.http.routers.test.rule=Host(`{{ test_domain }}`) + - traefik.http.routers.test.entrypoints=websecure + - traefik.http.services.test.loadbalancer.server.port=80 + +networks: + proxy: + external: true diff --git a/playbooks/roles/test/templates/volumes/data/.gitkeep b/playbooks/roles/test/templates/volumes/data/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/playbooks/roles/test/templates/volumes/data/.gitkeep |