Deploy Gogs as a Podman Quadlet Container
podman
- version4.7.2+
gogs_quadlet
: (dict
) - Define the Container image and taggogs_quadlet_volumes
: (list
) A list of volumes and paths to be monted on the container.gogs_quadlet_ports
: (list
) A list of ports to be published by the gogs containergogs_quadlet_psql_volumes
: (list
) A list of volumes to be mounted on the PostgreSQL container.gogs_quadlet_psql
: (dict
) Define the PostgreSQL container image and ta to used.gogs_quadlet_psql_ports
: (list
) List of ports to be published by PostgreSQL containergogs_quadlet_psql_env
: (dict
) Environment variables binded to the PostgreSQL container.
container.podman
- version1.11.0+
- Basic Gogs Deployment:
deploy gogs and postgresql, postgresql user is the same of GOGS_USER
by default gogs will be deployed and bind volumes from /srv/gogs
created on
the host
---
- name: Deploying Gogs
hosts: server
gather_facts: false
vars:
gogs_quadlet_psql_env:
TZ: "ETC/UTC'
POSTGRESQL_PASSWORD: "admin"
GOGS_PASSWORD: "gogs-admin"
GOGS_USER: "gogs"
POSTGRES_DB: "gogs"
roles:
- gogs-quadlet
check-out the default variables from main to see the full list of supported values
This role was developed using ansible molecule. The use of molecule is optional but recommended.
- Testing:
Unit tests for checking code regression are available in thetests
directory. use theverify
ortest
commands, e.g:
molecule test
while developing use verify
instead:
molecule create
molecule verify
@mrbrandao - Igor Brandão