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
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
@ -4,7 +4,7 @@ networks:
|
||||
external: true
|
||||
|
||||
services:
|
||||
gitea:
|
||||
startpage:
|
||||
build: ./
|
||||
dockerfile: Dockerfile
|
||||
container_name: startpage
|
||||
@ -12,9 +12,9 @@ services:
|
||||
- external
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.gitea.entrypoints=web-secure"
|
||||
- "traefik.http.routers.gitea.rule=Host(`start.helcel.net`)"
|
||||
- "traefik.http.routers.gitea.tls=true"
|
||||
- "traefik.http.services.gitea.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.startpage.entrypoints=web-secure"
|
||||
- "traefik.http.routers.startpage.rule=Host(`start.helcel.net`)"
|
||||
- "traefik.http.routers.startpage.tls=true"
|
||||
- "traefik.http.services.startpage.loadbalancer.server.port=8080"
|
||||
- "traefik.docker.network=external"
|
||||
restart: always
|
Loading…
x
Reference in New Issue
Block a user