This commit is contained in:
parent
985814cb83
commit
4b8e96b899
14
.drone.yml
Normal file
14
.drone.yml
Normal 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
|
@ -1,4 +1,4 @@
|
|||||||
FROM node:14
|
FROM node
|
||||||
# Create app directory
|
# Create app directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user