add romm role
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
---
|
||||
services:
|
||||
romm:
|
||||
image: "rommapp/romm:{{ romm_container_version }}"
|
||||
container_name: "{{ romm_container_name }}"
|
||||
restart: "{{ romm_restart_policy }}"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- "{{ romm_resources_path }}:/romm/resources"
|
||||
{% if romm_redis_data_path %}
|
||||
- "{{ romm_redis_data_path }}:/redis-data"
|
||||
{% endif %}
|
||||
- "{{ romm_library_path }}:/romm/library"
|
||||
- "{{ romm_assets_path }}:/romm/assets"
|
||||
- "{{ romm_config_path }}:/romm/config"
|
||||
ports:
|
||||
- "{{ romm_http_port }}:8080"
|
||||
depends_on:
|
||||
{{ romm_db_container_name }}:
|
||||
condition: service_healthy
|
||||
restart: true
|
||||
|
||||
{{ romm_db_container_name }}:
|
||||
image: "mariadb:{{ romm_db_container_version }}"
|
||||
container_name: "{{ romm_db_container_name }}"
|
||||
restart: "{{ romm_restart_policy }}"
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD={{ romm_db_root_password }}
|
||||
- MARIADB_DATABASE=${DB_NAME}
|
||||
- MARIADB_USER=${DB_USER}
|
||||
- MARIADB_PASSWORD=${DB_PASSWD}
|
||||
volumes:
|
||||
- "{{ romm_mysql_data_path }}:/var/lib/mysql"
|
||||
healthcheck:
|
||||
test: [CMD, healthcheck.sh, --connect, --innodb_initialized]
|
||||
start_period: 30s
|
||||
start_interval: 10s
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
Reference in New Issue
Block a user