Skip to content
Snippets Groups Projects
Commit 622c5ad8 authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

Deploy warpapi with new container

parent c0198e32
No related branches found
No related tags found
No related merge requests found
...@@ -9,18 +9,6 @@ ...@@ -9,18 +9,6 @@
path: "/srv/warpapi" path: "/srv/warpapi"
state: "directory" state: "directory"
- name: clone repo
git:
repo: "https://gitlab.warpzone.ms/infrastruktur/warpapi.git"
version: "29bd7c7da2a55baa8b1acfa480af14b586062a4a"
dest: "/srv/warpapi"
force: "yes"
register: gitclone
- name: clone repo status
debug:
msg: "{{gitclone}}"
- name: Helper-Scripte erstellen - name: Helper-Scripte erstellen
template: template:
src: "{{ item }}" src: "{{ item }}"
......
version: "3" version: "3"
services: services:
app: app:
build: . image: gitlab-registry.warpzone.ms/infrastruktur/warpapi:latest
image: warpapi:{{ gitclone.after }}
restart: always restart: always
ports: ports:
- 127.0.0.1:42010:5000 - 127.0.0.1:42010:5000
volumes:
- /srv/warpapi/warpapi/:/opt/warpapi
environment: environment:
UPDATE_KEY: "{{ update_key }}" UPDATE_KEY: "{{ update_key }}"
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.{{ servicename }}.rule=Host(`{{ domain }}`) - traefik.http.routers.{{ servicename }}.rule=Host(`{{ domain }}`)
- traefik.http.routers.{{ servicename }}.entrypoints=websecure - traefik.http.routers.{{ servicename }}.entrypoints=websecure
- traefik.http.services.{{ servicename }}.loadbalancer.server.port=5000 - traefik.http.services.{{ servicename }}.loadbalancer.server.port=5000
networks: networks:
- default - default
- web - web
networks: networks:
web: web:
external: true external: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment