mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-02-23 12:51:54 +01:00
Optimized snipe-it draft
This commit is contained in:
parent
49aafaf5b8
commit
aaac98249c
@ -1 +0,0 @@
|
|||||||
https://github.com/snipe/snipe-it
|
|
4
roles/docker-snipe_it/README.md
Normal file
4
roles/docker-snipe_it/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
## more
|
||||||
|
https://github.com/snipe/snipe-it
|
||||||
|
https://snipeitapp.com/
|
14
roles/docker-snipe_it/tasks/main.yml
Normal file
14
roles/docker-snipe_it/tasks/main.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: "include docker/compose/database.yml"
|
||||||
|
include_tasks: docker/compose/database.yml
|
||||||
|
|
||||||
|
- name: "include tasks nginx-docker-proxy-domain.yml"
|
||||||
|
include_tasks: nginx-docker-proxy-domain.yml
|
||||||
|
|
||||||
|
- name: create .env
|
||||||
|
template: src=env.j2 dest={{docker_compose_instance_directory}}/.env
|
||||||
|
notify: docker compose project setup
|
||||||
|
|
||||||
|
- name: add docker-compose.yml
|
||||||
|
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||||
|
notify: docker compose project setup
|
@ -1,13 +1,10 @@
|
|||||||
volumes:
|
services:
|
||||||
db_data:
|
|
||||||
storage:
|
|
||||||
|
|
||||||
{% include 'templates/docker/services/redis.yml.j2' %}
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
||||||
|
|
||||||
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
||||||
|
|
||||||
services:
|
application:
|
||||||
app:
|
|
||||||
image: snipe/snipe-it:${APP_VERSION}
|
image: snipe/snipe-it:${APP_VERSION}
|
||||||
restart: {{docker_restart_policy}}
|
restart: {{docker_restart_policy}}
|
||||||
volumes:
|
volumes:
|
||||||
@ -16,7 +13,7 @@ services:
|
|||||||
- "${APP_PORT}:80"
|
- "${APP_PORT}:80"
|
||||||
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
||||||
env_file:
|
env_file:
|
||||||
- .env # Will also be read, without this parameter
|
- .env # Will also be read, without explicit declaring it here
|
||||||
{% include 'templates/docker/container/networks.yml.j2' %}
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
||||||
|
|
||||||
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
@ -1,8 +1,8 @@
|
|||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
# REQUIRED: DOCKER SPECIFIC SETTINGS
|
# REQUIRED: DOCKER SPECIFIC SETTINGS
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
APP_VERSION={{applications.snape-it.version}}
|
APP_VERSION={{applications.snipe_it.version}}
|
||||||
APP_PORT={{ports.localhost.http_ports.snipe-it}}
|
APP_PORT={{ports.localhost.http_ports.snipe_it}}
|
||||||
|
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
# REQUIRED: BASIC APP SETTINGS
|
# REQUIRED: BASIC APP SETTINGS
|
3
roles/docker-snipe_it/vars/main.yml
Normal file
3
roles/docker-snipe_it/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
application_id: "snipe_it"
|
||||||
|
database_password: "{{applications.snipe_it.database_password}}"
|
||||||
|
database_type: "mariadb"
|
Loading…
x
Reference in New Issue
Block a user