2025-02-04 16:40:08 +01:00
|
|
|
services:
|
2025-02-03 14:54:31 +01:00
|
|
|
|
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
|
|
|
|
2025-02-04 18:14:37 +01:00
|
|
|
{% include 'roles/docker-central-database/templates/services/' + database_type + '.yml.j2' %}
|
2025-02-03 14:54:31 +01:00
|
|
|
|
2025-02-04 16:40:08 +01:00
|
|
|
application:
|
2025-02-04 23:48:18 +01:00
|
|
|
image: snipe/snipe-it:{{applications.snipe_it.version}}
|
|
|
|
{% include 'roles/docker-compose/templates/services/base.yml.j2' %}
|
2025-02-03 14:54:31 +01:00
|
|
|
volumes:
|
|
|
|
- data:/var/lib/snipeit
|
|
|
|
ports:
|
2025-02-12 12:41:13 +01:00
|
|
|
- "127.0.0.1:{{ports.localhost.http.snipe_it}}:80"
|
2025-02-03 14:54:31 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2025-02-18 21:00:14 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/localhost/80 && echo -e 'GET / HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q 'HTTP/1.1'"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
|
|
|
|
2025-02-03 14:54:31 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
|
|
redis:
|
|
|
|
data:
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|