homelab/roles/phoenix/tasks/main.yml

20 lines
504 B
YAML
Raw Normal View History

2024-11-08 11:42:07 +05:00
---
- name: Create phoenix volume
become: true
community.docker.docker_volume:
name: phoenix
- name: Run phoenix
become: true
community.docker.docker_container:
name: phoenix-1
image: ghcr.io/ordinary-dev/phoenix:v1.3.0
volumes:
- phoenix:/var/lib/phoenix
env:
P_SECRETKEY: "{{ secret_key }}"
P_DEFAULTUSERNAME: "{{ default_username }}"
P_DEFAULTPASSWORD: "{{ default_password }}"
networks:
- name: haproxy
restart_policy: unless-stopped