2019-10-19 18:07:48 +00:00
|
|
|
---
|
|
|
|
# tasks file for panopticon
|
|
|
|
- name: launch mariadb
|
|
|
|
become: yes
|
|
|
|
docker_container:
|
|
|
|
name: panopticon-db
|
2020-06-28 15:40:27 +00:00
|
|
|
image: "docker.io/mariadb:{{ panopticon_db_version }}"
|
2019-10-19 18:07:48 +00:00
|
|
|
volumes:
|
|
|
|
- /opt/panopticon/database:/var/lib/mysql
|
|
|
|
env:
|
|
|
|
MYSQL_ROOT_PASSWORD: "{{ panopticon_db_password }}"
|
|
|
|
MYSQL_DATABASE: "{{ panopticon_db_name }}"
|
|
|
|
MYSQL_USER: "{{ panopticon_db_user }}"
|
|
|
|
MYSQL_PASSWORD: "{{ panopticon_db_password }}"
|
|
|
|
restart_policy: unless-stopped
|
2020-06-28 15:40:27 +00:00
|
|
|
labels: "{{ panopticon_db_docker_labels_complete }}"
|
2020-06-29 18:08:49 +00:00
|
|
|
ports: "{{ panopticon_db_docker_ports }}"
|
2019-10-19 18:07:48 +00:00
|
|
|
|
|
|
|
- name: launch panopticon
|
|
|
|
become: yes
|
|
|
|
docker_container:
|
|
|
|
name: panopticon
|
2020-06-28 15:40:27 +00:00
|
|
|
image: registry.gitlab.com/famedly/containers/panopticon
|
2019-10-19 18:07:48 +00:00
|
|
|
pull: true
|
|
|
|
links:
|
|
|
|
- panopticon-db:mariadb
|
2020-06-28 15:40:27 +00:00
|
|
|
labels: "{{ panopticon_docker_labels_complete }}"
|
2019-10-19 18:07:48 +00:00
|
|
|
ports: "{{ panopticon_docker_ports }}"
|
|
|
|
env:
|
|
|
|
PANOPTICON_DB_DRIVER: mysql
|
|
|
|
PANOPTICON_DB: "{{ panopticon_db_dsn }}"
|
|
|
|
PANOPTICON_PORT: "8000"
|
|
|
|
restart_policy: unless-stopped
|