newv
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
choelzl 2021-06-22 12:38:10 +02:00
parent 985814cb83
commit 4b8e96b899
Signed by: sora
GPG Key ID: A362EA0491E2EEA0
3 changed files with 20 additions and 6 deletions

14
.drone.yml Normal file
View File

@ -0,0 +1,14 @@
pipeline:
deploy-production:
image: docker/compose:1.19.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker-compose -p startpage down
- docker-compose -p startpage up -d
when:
event: deployment
environment: production
branches: master

View File

@ -1,4 +1,4 @@
FROM node:14 FROM node
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app

View File

@ -4,7 +4,7 @@ networks:
external: true external: true
services: services:
gitea: startpage:
build: ./ build: ./
dockerfile: Dockerfile dockerfile: Dockerfile
container_name: startpage container_name: startpage
@ -12,9 +12,9 @@ services:
- external - external
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.gitea.entrypoints=web-secure" - "traefik.http.routers.startpage.entrypoints=web-secure"
- "traefik.http.routers.gitea.rule=Host(`start.helcel.net`)" - "traefik.http.routers.startpage.rule=Host(`start.helcel.net`)"
- "traefik.http.routers.gitea.tls=true" - "traefik.http.routers.startpage.tls=true"
- "traefik.http.services.gitea.loadbalancer.server.port=8080" - "traefik.http.services.startpage.loadbalancer.server.port=8080"
- "traefik.docker.network=external" - "traefik.docker.network=external"
restart: always restart: always