Skip to content

Commit

Permalink
feat: update production compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Dec 2, 2024
1 parent c8c9b53 commit 3be4ab1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 28 deletions.
48 changes: 48 additions & 0 deletions compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This compose manages:
# api.starknet.id backend: https://github.com/lfglabs-dev/api.starknet.id
# starknetid verifier backend: https://github.com/lfglabs-dev/verifier_server
# auto_renew bot backend: https://github.com/lfglabs-dev/auto_renew_bot

services:
starknetid_server:
container_name: starknetid_server
build: .
command: ./target/release/starknetid_server
restart: always
ports:
- 8080:8080

starknetid_verifier:
container_name: starknetid_verifier
build:
context: ../verifier_server
dockerfile: ./Dockerfile
command: python -u verifier
restart: always
ports:
- 8083:8083

auto_renew_bot:
container_name: auto_renew_bot
build:
context: ../auto_renew_bot
dockerfile: ./bot/Dockerfile
restart: "no"

nginx:
depends_on:
- starknetid_server
- starknetid_verifier
image: valian/docker-nginx-auto-ssl
restart: on-failure
ports:
- 80:80
- 443:443
volumes:
- ssl_data:/etc/resty-auto-ssl
environment:
ALLOWED_DOMAINS: "api.starknet.id,verifier.starknet.id"
SITES: "api.starknet.id=starknetid_server:8080;verifier.starknet.id=starknetid_verifier:8083"

volumes:
ssl_data:
3 changes: 0 additions & 3 deletions docker-compose.yml → compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
version: '3'

services:

starknetid_server:
container_name: starknetid_server
build: .
Expand Down
25 changes: 0 additions & 25 deletions docker-compose.prod.yml

This file was deleted.

0 comments on commit 3be4ab1

Please sign in to comment.