mirror of
https://github.com/cupcakearmy/obolus.git
synced 2024-12-22 08:06:30 +00:00
traeffik
This commit is contained in:
parent
0b0177d089
commit
5a26a17c33
48
.drone.yml
48
.drone.yml
@ -22,27 +22,27 @@ steps:
|
||||
- npm i --only=prod
|
||||
|
||||
|
||||
# - name: deploy
|
||||
# image: cupcakearmy/drone-deploy
|
||||
# pull: always
|
||||
# environment:
|
||||
# PLUGIN_KEY:
|
||||
# from_secret: ssh_key
|
||||
# settings:
|
||||
# host: nicco.io
|
||||
# user: root
|
||||
# port: 1312
|
||||
# target: /srv/web/obolus
|
||||
# sources:
|
||||
# - ./api/dist
|
||||
# - ./api/node_modules
|
||||
# - ./www/.next
|
||||
# - ./www/server.js
|
||||
# - ./www/node_modules
|
||||
# - ./docker-compose.prod.yml
|
||||
# commands:
|
||||
# - docker-compose -f docker-compose.prod.yml down
|
||||
# - docker-compose -f docker-compose.prod.yml up -d
|
||||
# when:
|
||||
# event: push
|
||||
# branch: master
|
||||
- name: deploy
|
||||
image: cupcakearmy/drone-deploy
|
||||
pull: always
|
||||
environment:
|
||||
PLUGIN_KEY:
|
||||
from_secret: ssh_key
|
||||
settings:
|
||||
host: nicco.io
|
||||
user: root
|
||||
port: 1312
|
||||
target: /srv/web/obolus
|
||||
sources:
|
||||
- ./api/dist
|
||||
- ./api/node_modules
|
||||
- ./www/.next
|
||||
- ./www/server.js
|
||||
- ./www/node_modules
|
||||
- ./docker-compose.prod.yml
|
||||
commands:
|
||||
# - docker-compose -f docker-compose.prod.yml down
|
||||
# - docker-compose -f docker-compose.prod.yml up -d
|
||||
when:
|
||||
event: push
|
||||
branch: master
|
@ -5,6 +5,12 @@ x-defaults: &default
|
||||
restart: always
|
||||
working_dir: /app
|
||||
command: npm run prod
|
||||
ports:
|
||||
- 80
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
services:
|
||||
api:
|
||||
@ -16,3 +22,12 @@ services:
|
||||
<<: *default
|
||||
volumes:
|
||||
- ./www:/app
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.port=80
|
||||
- traefik.docker.network=traefik
|
||||
- traefik.backend=obolus
|
||||
- traefik.frontend.rule=Host:obolus.nicco.io
|
Loading…
Reference in New Issue
Block a user