mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Renamed landing page to portfolio and implemented config.yaml file for it
This commit is contained in:
2
roles/docker-portfolio/README.md
Normal file
2
roles/docker-portfolio/README.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# role docker-portfolio
|
||||
create a portfolio with flask. Uses https://github.com/kevinveenbirkenbach/portfolio
|
19
roles/docker-portfolio/tasks/main.yml
Normal file
19
roles/docker-portfolio/tasks/main.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- 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: create {{docker_compose_instance_directory}}/app/config.yaml
|
||||
copy:
|
||||
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/docker/app/portfolio/config.yaml"
|
||||
dest: "{{docker_compose_instance_directory}}/app/config.yaml"
|
||||
notify: docker compose project setup
|
||||
|
||||
- name: add docker-compose.yml
|
||||
template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
|
||||
notify: docker compose project setup
|
15
roles/docker-portfolio/templates/docker-compose.yml.j2
Normal file
15
roles/docker-portfolio/templates/docker-compose.yml.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
portfolio:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: application-portfolio
|
||||
container_name: portfolio
|
||||
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' %}
|
2
roles/docker-portfolio/vars/main.yml
Normal file
2
roles/docker-portfolio/vars/main.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
docker_compose_project_name: "portfolio"
|
||||
repository_address: "https://github.com/kevinveenbirkenbach/portfolio"
|
Reference in New Issue
Block a user