Config files for hosting with Autonomic #1

Merged
dalmationer merged 1 commits from roxxers/Dalmationer.art:main into main 2022-02-22 12:17:11 +00:00
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