Chore: Moved to ruff and sorted and cleaned using it. Chore: Ansible file moved to roles based. Chore: Upgraded some dependencies
28 lines
690 B
YAML
28 lines
690 B
YAML
---
|
|
# Tasks for docker role
|
|
- name: Build brewman image
|
|
docker_image:
|
|
name: brewman:latest
|
|
build:
|
|
path: "/tmp/{{ host_directory }}/"
|
|
dockerfile: "/tmp/{{ host_directory }}/Dockerfile"
|
|
pull: yes
|
|
state: present
|
|
source: build
|
|
|
|
- name: Create brewman container
|
|
docker_container:
|
|
name: "{{ host_directory }}"
|
|
image: brewman:latest
|
|
state: started
|
|
restart_policy: "unless-stopped"
|
|
env_file: "/var/lib/{{ host_directory }}/.env"
|
|
etc_hosts:
|
|
db : "{{ db_host }}"
|
|
# links:
|
|
# - "postgres:db"
|
|
published_ports:
|
|
- "127.0.0.1:{{ host_port }}:80"
|
|
volumes:
|
|
- "/var/lib/{{ host_directory }}/frontend:/frontend"
|