Add an internally working version of wedding
Working on the internal network that is.
This commit is contained in:
parent
388bdc025e
commit
6d828ea401
3 changed files with 83 additions and 0 deletions
44
roles/wedding/tasks/main.yml
Normal file
44
roles/wedding/tasks/main.yml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
- name: Include user role
|
||||
ansible.builtin.include_role:
|
||||
name: user
|
||||
vars:
|
||||
user_username: "{{ wedding_username }}"
|
||||
user_password: "{{ wedding_password }}"
|
||||
- name: Login to ghcr registry and create ${XDG_RUNTIME_DIR}/containers/auth.json
|
||||
become: true
|
||||
become_user: "{{ wedding_username }}"
|
||||
containers.podman.podman_login:
|
||||
username: "{{ github_registry_user }}"
|
||||
password: "{{ github_registry_token }}"
|
||||
registry: ghcr.io
|
||||
- name: Create the wedding container
|
||||
ansible.builtin.include_role:
|
||||
name: podman-container
|
||||
apply:
|
||||
become: true
|
||||
become_user: "{{ wedding_username }}"
|
||||
vars:
|
||||
podman_container_name: wedding-server
|
||||
podman_container_image: ghcr.io/kleinendorst/wedding
|
||||
podman_container_tag: "{{ wedding_version }}"
|
||||
podman_container_publish:
|
||||
- 127.0.0.1:3001:3000
|
||||
podman_container_volumes: []
|
||||
podman_container_env:
|
||||
DATABASE_HOST: 'localhost' # TODO: Needs to be fixed later...
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_DBNAME: wedding
|
||||
DATABASE_USER: "{{ postgres.user }}"
|
||||
DATABASE_PASSWORD: "{{ postgres.password }}"
|
||||
SESSION_SECRET: "{{ wedding_env.secret }}"
|
||||
# NODE_ENV: production # TODO: Enable when ready for secure cookie testing...
|
||||
WEDDING_FULL_ACCESS_CODE: "{{ wedding_env.full_access_code }}"
|
||||
WEDDING_NIGHT_ACCESS_CODE: "{{ wedding_env.night_access_code }}"
|
||||
- name: Include simple-reverse-proxy role
|
||||
ansible.builtin.include_role:
|
||||
name: simple-reverse-proxy
|
||||
vars:
|
||||
simple_reverse_proxy_external_port: 8443
|
||||
simple_reverse_proxy_internal_port: 3001
|
||||
simple_reverse_proxy_internal_subdomain: "{{ random_pre_proxy_domain_name }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue