Skip to content

Commit

Permalink
Migrated chipnet server to hetzner
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Nov 18, 2024
1 parent 2b00f7b commit 4205299
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions compose/chipnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
bchn:
image: cagataygurturk/docker-ssh-tunnel
volumes:
- /home/ubuntu/.ssh:/root/ssh:ro
- /root/.ssh:/root/ssh:ro
environment:
SSH_DEBUG: "-v"
TUNNEL_HOST: bchn-chipnet
Expand All @@ -18,7 +18,7 @@ services:
zmq:
image: cagataygurturk/docker-ssh-tunnel
volumes:
- /home/ubuntu/.ssh:/root/ssh:ro
- /root/.ssh:/root/ssh:ro
environment:
SSH_DEBUG: "-v"
TUNNEL_HOST: bchn-chipnet
Expand All @@ -28,7 +28,7 @@ services:
fulcrum:
image: cagataygurturk/docker-ssh-tunnel
volumes:
- /home/ubuntu/.ssh:/root/ssh:ro
- /root/.ssh:/root/ssh:ro
environment:
SSH_DEBUG: "-v"
TUNNEL_HOST: bchn-chipnet
Expand All @@ -40,19 +40,19 @@ services:
volumes:
- watchtower_db_data:/var/lib/postgresql/data
env_file:
- /home/ubuntu/watchtower/compose/.env_chipnet
- /root/watchtower/compose/.env_chipnet
expose:
- "5432"
redis:
image: "redis:alpine"
env_file:
- /home/ubuntu/watchtower/compose/.env_chipnet
- /root/watchtower/compose/.env_chipnet
backend:
container_name: watchtower_backend
build: /home/ubuntu/watchtower
build: /root/watchtower
image: watchtower_web
command: [ "supervisord", "-c", "/code/supervisord.conf", "--nodaemon" ]
env_file: /home/ubuntu/watchtower/compose/.env_chipnet
env_file: /root/watchtower/compose/.env_chipnet
volumes:
- /var/www/images:/images
- /code/anyhedge/js/node_modules
Expand Down
5 changes: 2 additions & 3 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ def get_active_branch_name():
@task
def chipnet(ctx):
ctx.config.network = 'chipnet'
ctx.config.project_dir = f'/home/ubuntu/{project}'
ctx.config.project_dir = f'/root/{project}'
ctx.config.run.env['conn'] = Connection(
config['CHIPNET_SERVER_HOST'],
user=config['CHIPNET_SERVER_USER'],
connect_kwargs = { 'key_filename': config['SERVER_SSH_KEY'] }
user=config['CHIPNET_SERVER_USER']
)


Expand Down

0 comments on commit 4205299

Please sign in to comment.