2025-08-06 17:55:42 -04:00

29 lines
840 B
YAML

- name: Set up container data
ansible.builtin.include_role:
role: docker/container-data
vars:
dir_name: "{{ data_dir_name }}"
- name: Set up directories in container data
ansible.builtin.file:
path: "{{ container_data_base_path }}/{{ data_dir_name }}/{{ item }}"
state: directory
mode: '0777'
loop:
- foundry
- data
- config
- name: Deploy foundry container
community.docker.docker_container:
name: "{{ container_name }}"
pull: true
state: started
restart_policy: unless-stopped
image: gitgud.foo/javif89/foundryvtt-docker:13.346.0
ports:
- '{{ foundry_port }}:30000'
- '{{ filebrowser_port }}:8080'
volumes:
- "{{ container_data_base_path }}/{{ data_dir_name }}/data:/data"
- "{{ container_data_base_path }}/{{ data_dir_name }}/config:/config"