Implemented basic landingpage integration

This commit is contained in:
2025-01-11 15:39:30 +01:00
parent 9cd2424c0e
commit e73da1e2ec
9 changed files with 46 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
# role docker-landingpage
create a landingpage with flask. Uses https://github.com/kevinveenbirkenbach/landingpage

View File

@@ -0,0 +1,13 @@
---
- name: "include docker/compose/common.yml"
include_tasks: docker/compose/common.yml
- name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml
- name: "include tasks update-repository-with-docker-compose.yml"
include_tasks: update-repository-with-docker-compose.yml
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
notify: docker compose project setup

View File

@@ -0,0 +1,15 @@
services:
landingpage:
build:
context: .
dockerfile: Dockerfile
image: application-landingpage
container_name: landingpage
ports:
- 127.0.0.1:{{http_port}}:5000
volumes:
- ./app:/app
restart: unless-stopped
{% include 'templates/docker/container/networks.yml.j2' %}
{% include 'templates/docker/compose/networks.yml.j2' %}

View File

@@ -0,0 +1,2 @@
docker_compose_project_name: "landingpage"
repository_address: "https://github.com/kevinveenbirkenbach/landingpage"