mirror of
https://github.com/philipredstone/relnet.git
synced 2025-07-09 07:06:41 +02:00
Update Dockerfile and add docker-compose for standalone and traefik
This commit is contained in:
33
docker-compose.traefik.yml
Normal file
33
docker-compose.traefik.yml
Normal file
@ -0,0 +1,33 @@
|
||||
networks:
|
||||
internal:
|
||||
internal: true
|
||||
traefik:
|
||||
external: true
|
||||
|
||||
services:
|
||||
relnet:
|
||||
image: github.com/philipredstone/relnet:latest
|
||||
build: .
|
||||
networks:
|
||||
- internal
|
||||
- traefik
|
||||
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
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.relnet.rule=Host(`relnet`)"
|
||||
- "traefik.http.routers.relnet.entrypoints=websecure"
|
||||
- "traefik.http.routers.relnet.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.relnet.loadbalancer.server.port=80"
|
||||
|
||||
relnet-db:
|
||||
image: mongo:latest
|
||||
networks:
|
||||
- internal
|
||||
restart: always
|
||||
volumes:
|
||||
- db:/data/db
|
Reference in New Issue
Block a user