Browse Source

Update deployment instructions

master
Lauri Võsandi 4 months ago
parent
commit
de5fd083a6
  1. 3
      README.md
  2. 9
      docker-compose.yml

3
README.md

@ -43,11 +43,10 @@ to redirect requests to your dev instance.
# Deploying
Images are built and pushed to Docker Hub by Jenkins.
To deploy in prod adjust `DOORBOY_SECRET`, `MONGO_URI` in `.env` and proceed to launch:
```
docker build -t 172.20.40.1:5000/doorboy:latest .
docker push 172.20.40.1:5000/doorboy:latest
overnode pull
overnode up
```

9
docker-compose.yml

@ -6,11 +6,12 @@ networks:
services:
app:
image: 172.20.40.1:5000/doorboy:latest
hostname: replica${OVERNODE_ID}.doorboy.infra.k-space.ee
image: kspaceee/doorboy-proxy:latest
hostname: replica${OVERNODE_ID:-1}.doorboy.infra.k-space.ee
restart: unless-stopped
env_file: .env
user: "65534:65534"
networks:
infra:
ipv4_address: 172.21.57.${OVERNODE_ID}
ipv6_address: 2001:bb8:4008:21:57::${OVERNODE_ID}
ipv4_address: 172.21.57.${OVERNODE_ID:-1}
ipv6_address: 2001:bb8:4008:21:57::${OVERNODE_ID:-1}

Loading…
Cancel
Save