added deploy files to site

This commit is contained in:
Roxie Gibson 2022-02-21 08:00:19 +00:00
parent deacc638a1
commit bcda6fb8cc
Signed by: roxxers
GPG Key ID: 5D0140EDEE123F4D
3 changed files with 46 additions and 0 deletions

24
.drone.yml Normal file
View File

@ -0,0 +1,24 @@
---
kind: pipeline
type: docker
name: deployment
steps:
- name: docker build dalmationer.art
image: plugins/docker
settings:
username: thecoopcloud
password:
from_secret: thecoopcloud_password
repo: thecoopcloud/dalmationer.art
tags: latest
- name: deployment dalmationer.art
image: thecoopcloud/stack-ssh-deploy:latest
settings:
stack: dalmationer-art
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
rm: true
host: swarm.autonomic.zone
compose: compose.yml
image: thecoopcloud/dalmationer.art

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM nginx:1.21.4
COPY ./ /usr/share/nginx/html

19
compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.8"
services:
web:
image: thecoopcloud/dalmationer.art:latest
networks:
- proxy
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.dalmationer-art.loadbalancer.server.port=80"
- "traefik.http.routers.dalmationer-art.rule=Host(`dalmationer.art`, `www.dalmationer.art`)"
- "traefik.http.routers.dalmationer-art.entrypoints=web-secure"
- "traefik.http.routers.dalmationer-art.tls.certresolver=production"
networks:
proxy:
external: true