diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..69e6f94 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index bdf97cc..93196e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14 +FROM node # Create app directory WORKDIR /usr/src/app diff --git a/docker-compose.yml b/docker-compose.yml index 7374d79..5919c87 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file