2025-02-04 16:40:08 +01:00
|
|
|
services:
|
2025-02-03 14:54:31 +01:00
|
|
|
|
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
|
|
|
|
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
|
|
|
|
2025-02-04 16:40:08 +01:00
|
|
|
application:
|
2025-02-03 14:54:31 +01:00
|
|
|
image: snipe/snipe-it:${APP_VERSION}
|
|
|
|
restart: {{docker_restart_policy}}
|
|
|
|
volumes:
|
|
|
|
- data:/var/lib/snipeit
|
|
|
|
ports:
|
|
|
|
- "${APP_PORT}:80"
|
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
env_file:
|
2025-02-04 16:40:08 +01:00
|
|
|
- .env # Will also be read, without explicit declaring it here
|
2025-02-03 14:54:31 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
|
|
|
redis:
|
|
|
|
data:
|
|
|
|
|
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|