-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Timo Glastra <timo@animo.id>
- Loading branch information
1 parent
d0920cb
commit 5106ff5
Showing
5 changed files
with
110 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release Image | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build_and_deploy: | ||
name: Build and Deploy Stack | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/#-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and Publish Mediator | ||
uses: ./.github/actions/publish-docker-image | ||
with: | ||
image-name: ghcr.io/animo/animo-mediator | ||
context: . | ||
docker-file: Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
version: '3.5' | ||
|
||
services: | ||
animo-mediator: | ||
image: ghcr.io/animo/animo-mediator:main | ||
networks: | ||
- traefik | ||
deploy: | ||
labels: | ||
# Enable traefik so the container can be exposed to the outside world | ||
traefik.enable: 'true' | ||
|
||
# HTTP and WS communication | ||
traefik.http.routers.animo-mediator.rule: Host(`mediator.dev.animo.id`) | ||
traefik.http.routers.animo-mediator.entrypoints: web-secure | ||
traefik.http.routers.animo-mediator.tls.certresolver: zerossl | ||
traefik.http.routers.animo-mediator.service: animo-mediator-service | ||
traefik.http.services.animo-mediator-service.loadbalancer.server.port: 3000 | ||
environment: | ||
AGENT_PORT: 3000 | ||
AGENT_NAME: Animo Mediator | ||
WALLET_NAME: animo-mediator | ||
WALLET_KEY: ${WALLET_KEY} | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DATABASE_URL: ${POSTGRES_DATABASE_URL} | ||
POSTGRES_ADMIN_USER: ${POSTGRES_ADMIN_USER} | ||
POSTGRES_ADMIN_PASSWORD: ${POSTGRES_ADMIN_PASSWORD} | ||
POSTGRES_TLS_CA: ${POSTGRES_TLS_CA} | ||
AGENT_ENDPOINTS: 'https://mediator.dev.animo.id,wss://mediator.dev.animo.id' | ||
INVITATION_URL: https://mediator.dev.animo.id/invite | ||
LOG_LEVEL: 2 | ||
ports: | ||
- '3000' | ||
|
||
networks: | ||
traefik: | ||
external: true | ||
name: traefik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,20 @@ | ||
version: '3.5' | ||
|
||
services: | ||
animo-mediator: | ||
animomediator: | ||
image: ghcr.io/animo/animo-mediator:main | ||
networks: | ||
- traefik | ||
deploy: | ||
labels: | ||
# Enable traefik so the container can be exposed to the outside world | ||
traefik.enable: 'true' | ||
|
||
# HTTP and WS communication | ||
traefik.http.routers.animo-mediator.rule: Host(`mediator.dev.animo.id`) | ||
traefik.http.routers.animo-mediator.entrypoints: web-secure | ||
traefik.http.routers.animo-mediator.tls.certresolver: zerossl | ||
traefik.http.routers.animo-mediator.service: animo-mediator-service | ||
traefik.http.services.animo-mediator-service.loadbalancer.server.port: 3000 | ||
environment: | ||
AGENT_PORT: 3000 | ||
AGENT_NAME: Animo Mediator | ||
WALLET_NAME: animo-mediator | ||
AGENT_NAME: Mediator | ||
WALLET_NAME: mediator | ||
WALLET_KEY: ${WALLET_KEY} | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DATABASE_URL: ${POSTGRES_DATABASE_URL} | ||
POSTGRES_ADMIN_USER: ${POSTGRES_ADMIN_USER} | ||
POSTGRES_ADMIN_PASSWORD: ${POSTGRES_ADMIN_PASSWORD} | ||
POSTGRES_TLS_CA: ${POSTGRES_TLS_CA} | ||
AGENT_ENDPOINTS: 'https://mediator.dev.animo.id,wss://mediator.dev.animo.id' | ||
INVITATION_URL: https://mediator.dev.animo.id/invite | ||
AGENT_ENDPOINTS: 'https://my-mediator.com,wss://my-mediator.com' | ||
LOG_LEVEL: 2 | ||
ports: | ||
- '3000' | ||
|
||
networks: | ||
traefik: | ||
external: true | ||
name: traefik |