Update Dockerfile and add docker-compose for standalone and traefik

This commit is contained in:
2025-04-15 15:56:42 +02:00
parent d6e1162631
commit 3e3b8930b5
5 changed files with 67 additions and 2 deletions

26
docker-compose.yml Normal file
View File

@ -0,0 +1,26 @@
networks:
internal:
internal: true
services:
relnet:
image: github.com/philipredstone/relnet:latest
build: .
ports:
- "80:80"
networks:
- internal
environment:
- PORT=80
- MONGODB_URI=mongodb://relnet-db:27017/friendship-network
- JWT_SECRET=your_jwt_secret_key_change_this
- APP_URL=http://localhost:80
- ENABLE_REGISTRATION=true
relnet-db:
image: mongo:latest
networks:
- internal
restart: always
volumes:
- db:/data/db