Merged client playbook and server playbook

This commit is contained in:
2023-04-18 14:52:43 +02:00
parent 2c76f99dd1
commit ec0dbee7bb
341 changed files with 153 additions and 811 deletions

View File

@@ -1,8 +0,0 @@
---
- name: recreate and build roulette-wheel
command:
cmd: docker-compose -p roulette-wheel up -d --force-recreate --build
chdir: "{{docker_compose_path}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600

View File

@@ -1,2 +0,0 @@
dependencies:
- native-docker-reverse-proxy

View File

@@ -1,7 +0,0 @@
# docker roulette-wheel
## further information
- https://github.com/p-wojt/roulette-wheel
- https://dev.to/ms314006/how-to-package-front-end-projects-into-docker-images-and-use-it-with-webpack-go3
- https://stackoverflow.com/questions/53178820/dockerfile-to-run-nodejs-static-content-in-docker-container
- https://stackoverflow.com/questions/43619644/i-am-getting-an-invalid-host-header-message-when-connecting-to-webpack-dev-ser

View File

@@ -1,29 +0,0 @@
---
- name: recieve {{domain}} certificate
command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}}
- name: configure {{domain}}.conf
template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf
notify: restart nginx
- name: "create {{docker_compose_path}}"
file:
path: "{{docker_compose_path}}"
state: directory
mode: 0755
- name: pull app repository
git:
repo: "https://github.com/kevinveenbirkenbach/roulette-wheel.git"
dest: "{{app_path}}"
update: yes
notify: recreate and build roulette-wheel
become: true
- name: add docker-compose.yml
template: src=docker-compose.yml.j2 dest={{docker_compose_path}}docker-compose.yml
notify: recreate and build roulette-wheel
- name: add Dockerfile
template: src=Dockerfile.j2 dest={{docker_compose_path}}Dockerfile
notify: recreate and build roulette-wheel

View File

@@ -1,7 +0,0 @@
FROM node:latest
WORKDIR /app
COPY ./app/package.json ./
RUN npm install
COPY ./app/ ./
RUN npm run build
CMD ["npm", "run", "start"]

View File

@@ -1,9 +0,0 @@
version: '3.7'
services:
application:
container_name: application
build:
context: .
ports:
- 127.0.0.1:{{http_port}}:8080
restart: always

View File

@@ -1,2 +0,0 @@
docker_compose_path: "/home/administrator/docker-compose/roulette-wheel/"
app_path: "/home/administrator/docker-compose/roulette-wheel/app/"