36 lines
1012 B
YAML
36 lines
1012 B
YAML
---
|
|
- name: Hello world container
|
|
ansible.builtin.include_role:
|
|
name: service
|
|
vars:
|
|
service_name: hello-world
|
|
service_container_image: "docker.io/library/hello-world:latest"
|
|
service_container_mounts:
|
|
- type: volume
|
|
source: config
|
|
destination: /config
|
|
- type: bind
|
|
source: /media/hello-world
|
|
destination: /media
|
|
- type: bind
|
|
source: /etc/locale.conf
|
|
destination: /etc/locale.conf
|
|
readonly: true
|
|
service_container_http_port: 8080
|
|
service_domains: "{{ example_domains }}"
|
|
service_database_type: postgres
|
|
service_postgres_tag: 16-alpine
|
|
service_container_publish_ports:
|
|
- "127.0.0.1:8080:8080"
|
|
- "0.0.0.0:4443:8043"
|
|
service_requires:
|
|
- network-online.target
|
|
service_container_env:
|
|
TZ: "Etc/UTC"
|
|
service_additional_containers:
|
|
- name: worker
|
|
# image: "docker.io/library/hello-world:latest"
|
|
mounts: []
|
|
publish_ports: []
|
|
# env: {}
|