diff --git a/roles/docker_services/defaults/main.yml b/roles/docker_services/defaults/main.yml index 4874b3c..32d624f 100644 --- a/roles/docker_services/defaults/main.yml +++ b/roles/docker_services/defaults/main.yml @@ -29,10 +29,10 @@ services: postgres_version: 14-alpine redis_version: 7-alpine - simplexmq: + smp_server: domain: smp02.simplex.{{ base_domain }} - volume: "{{ base_volume }}/simplexmq" - version: latest + volume: "{{ base_volume }}/smp-server" + version: v5 snowflake: version: latest diff --git a/roles/docker_services/tasks/services/simplexmq.yml b/roles/docker_services/tasks/services/smp_server.yml similarity index 58% rename from roles/docker_services/tasks/services/simplexmq.yml rename to roles/docker_services/tasks/services/smp_server.yml index 33a554f..0e48a42 100644 --- a/roles/docker_services/tasks/services/simplexmq.yml +++ b/roles/docker_services/tasks/services/smp_server.yml @@ -2,35 +2,36 @@ --- - name: Create SimpleXMQ config directory ansible.builtin.file: - name: "{{ services.simplexmq.volume }}/config" + name: "{{ services.smp_server.volume }}/config" owner: root mode: u=rwx,g=rx,o=rx state: directory - name: Create SimpleXMQ logs directory ansible.builtin.file: - name: "{{ services.simplexmq.volume }}/logs" + name: "{{ services.smp_server.volume }}/logs" owner: root mode: u=rwx,g=rx,o=rx state: directory - name: Create Docker network for SimpleXMQ community.docker.docker_network: - name: simplexmq + name: smp-server state: present - name: Deploy SimpleXMQ Docker container community.docker.docker_container: - name: simplexmq + name: smp-server state: "{{ 'absent' if stop is defined and stop else 'started' }}" - image: simplexchat/simplexmq:{{ services.simplexmq.version }} + image: simplexchat/smp-server:{{ services.smp_server.version }} restart_policy: always + default_host_ip: '' networks: - - name: simplexmq + - name: smp-server env: - addr: "{{ services.simplexmq.domain }}" + addr: "{{ services.smp_server.domain }}" volumes: - - "{{ services.simplexmq.volume }}/config:/etc/opt/simplex:rw" - - "{{ services.simplexmq.volume }}/logs:/var/opt/simplex:rw" + - "{{ services.smp_server.volume }}/config:/etc/opt/simplex:rw" + - "{{ services.smp_server.volume }}/logs:/var/opt/simplex:rw" published_ports: - 5223:5223/tcp