mirror of
https://github.com/philipredstone/relnet.git
synced 2025-07-09 15:16:41 +02:00
Update Dockerfile and add docker-compose for standalone and traefik
This commit is contained in:
26
docker-compose.yml
Normal file
26
docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user