Browse Source

change docker-compose to expose frontend server ports

feature/frontend-selfhost
DashEightMate 12 months ago
parent
commit
1bb0226b5b
  1. 6
      docker/chapo-dev/docker-compose.yml
  2. 9
      docker/chapo-prod/docker-compose.yml
  3. 5
      docker/dev/docker_update.sh

6
docker/chapo-dev/docker-compose.yml

@ -6,8 +6,10 @@ services:
container_name: lemmy-dev-fe
ports:
- "127.0.0.1:4444:4444"
volumes:
- frontend:/app/dist #is this necessary anymore?
environment:
- PG_CONN_URL=postgres://lemmy:${LEMMYDEV_POSTGRES_PW}@postgres-dev:5433/lemmy
depends_on:
- postgres
lemmy:
image: registry.chapo.chat/hexbear:dev-latest

9
docker/chapo-prod/docker-compose.yml

@ -3,8 +3,13 @@ version: '3.3'
services:
hexbear-frontend:
image: registry.chapo.chat/hexbear-frontend:prod
volumes:
- frontend:/app/dist
container_name: lemmy-dev-fe
ports:
- "127.0.0.1:4444:4444"
environment:
- PG_CONN_URL=postgres://lemmy:${LEMMYPROD_POSTGRES_PW}@postgres-prod:5433/lemmy
depends_on:
- postgres
lemmy:
image: registry.chapo.chat/hexbear:prod-latest

5
docker/dev/docker_update.sh

@ -1,6 +1,5 @@
#!/bin/sh
set -e
sudo chown -R 991:991 volumes/pictrs
sudo docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest
sudo docker-compose up -d
docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest
docker-compose up -d
Loading…
Cancel
Save