Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (37 sloc) 1.19 KB
version: "3"
services:
database:
image: mongo:4.2.2
volumes:
- $PWD/scripts:/scripts
- /usr/share/labtrail/database:/data/db
api:
image: docker.pkg.github.com/janikvonrotz/labtrail/api:${API_VERSION}
environment:
- MONGODB_URI=mongodb://database:27017/labtrail
- JWT_SECRET=${JWT_SECRET}
links:
- "database:database"
app:
image: docker.pkg.github.com/janikvonrotz/labtrail/app:${APP_VERSION}
qr:
image: docker.pkg.github.com/janikvonrotz/labtrail/qr:${QR_VERSION}
links:
- "api:api"
proxy:
image: owasp/modsecurity:3-nginx
ports:
- "80:80"
- "443:443"
volumes:
- "$PWD/etc/modsecurity:/etc/modsecurity"
- "$PWD/etc/modsecurity.d/include.conf:/etc/modsecurity.d/include.conf"
- "$PWD/etc/modsecurity.d/modsecurity.conf:/etc/modsecurity.d/modsecurity.conf"
- "$PWD/etc/nginx/conf.d/default.template:/etc/nginx/conf.d/default.template"
links:
- "api:api"
- "app:app"
- "qr:qr"
environment:
- SERVERNAME=localhost
command: /bin/bash -c "envsubst '$$SERVERNAME' < /etc/nginx/conf.d/default.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"
You can’t perform that action at this time.