19 lines
504 B
YAML
19 lines
504 B
YAML
---
|
|
- 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
|