Need help with "unconventional" setup... #877
Unanswered
aarondvail
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hi there @aarondvail! Try changing Let me know how it goes! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For the sake of avoiding a TL;DR.... I am using Docker on with already running Postgres (and a bunch of other containers), so I'm trying to avoid using the docker compose... So, I've got scripts that will spin up the containers with docker run (Some variables redacted for Security). I start with the backend first, then the front end.
docker run -d --name=AdventureLog-Backend --restart unless-stopped --ip 192.168.2.252 -v /opt/port/docker/file/public.conf:/etc/resolv.conf -v /etc/localtime:/etc/localtime:ro -v /opt/port/docker/file/commonhosts:/etc/hosts -e TZ="America/New_York" -e PUBLIC_SERVER_URL=http://172.16.248.11:8000/ -e ORIGIN=http://localhost:8015 -e BODY_SIZE_LIMIT=Infinity -e FRONTEND_PORT=8015 -e PGHOST=172.16.248.11:5432 -e POSTGRES_DB= -e POSTGRES_USER= -e POSTGRES_PASSWORD= -e SECRET_KEY= -e DJANGO_ADMIN_USERNAME= -e DJANGO_ADMIN_PASSWORD= -e DJANGO_ADMIN_EMAIL= -e PUBLIC_URL=http://localhost:8016 -e CSRF_TRUSTED_ORIGINS=http://localhost:8016,http://localhost:8015 -e DEBUG=True -e FRONTEND_URL=http://localhost:8015 -e BACKEND_PORT=8016 -e DISABLE_REGISTRATION=True -v /opt/port/AdventureLog-Backend/data:/code/media -p 8016:80 -p 8000:8000 --network=MyGeneric ghcr.io/seanmorley15/adventurelog-backend:latest
docker run -d --name=AdventureLog-Frontend --restart unless-stopped --ip 192.168.2.251 -v /opt/port/docker/file/public.conf:/etc/resolv.conf -v /etc/localtime:/etc/localtime:ro -v /opt/port/docker/file/commonhosts:/etc/hosts -e TZ="America/New_York" -e PUBLIC_SERVER_URL=http://172.16.248.11:8000/ -e ORIGIN=http://localhost:8015 -e BODY_SIZE_LIMIT=Infinity -e FRONTEND_PORT=8015 -e PGHOST=172.16.248.11:5432 -e POSTGRES_DB= -e POSTGRES_USER= -e POSTGRES_PASSWORD= -e SECRET_KEY= -e DJANGO_ADMIN_USERNAME= -e DJANGO_ADMIN_PASSWORD= -e DJANGO_ADMIN_EMAIL= -e PUBLIC_URL=http://localhost:8016 -e CSRF_TRUSTED_ORIGINS=http://localhost:8016,http://localhost:8015 -e DEBUG=True -e FRONTEND_URL=http://localhost:8015 -e BACKEND_PORT=8016 -e DISABLE_REGISTRATION=True -p 8015:3000 --network=MyGeneric ghcr.io/seanmorley15/adventurelog-frontend:latest
And I'm getting the error when I try Login or Sign Up:
TypeError: fetch failed
at node:internal/deps/undici/undici:13510:13 {
[cause]: SocketError: other side closed
at Socket. (node:internal/deps/undici/undici:6294:28)
at Socket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: 'UND_ERR_SOCKET',
socket: {
localAddress: '192.168.2.251',
localPort: 47200,
remoteAddress: undefined,
remotePort: undefined,
remoteFamily: undefined,
timeout: undefined,
bytesWritten: 227,
bytesRead: 0
}
}
}
These are also behind a nginx reverse proxy with FQDNs AdventureLog.* is frontend while albe.* is the backend FQDN
The NGinX part is working
Beta Was this translation helpful? Give feedback.
All reactions