mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 21:01:53 +01:00
26 lines
674 B
Plaintext
26 lines
674 B
Plaintext
|
volumes:
|
||
|
db_data:
|
||
|
storage:
|
||
|
|
||
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
||
|
|
||
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
||
|
|
||
|
services:
|
||
|
app:
|
||
|
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:
|
||
|
- .env # Will also be read, without this parameter
|
||
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||
|
|
||
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
||
|
redis:
|
||
|
data:
|
||
|
|
||
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|