Commit f292a3b8 authored by Hidde-Jan Jongsma's avatar Hidde-Jan Jongsma

Initial commit

parents
# BE settings
SSI_SERVER_URL=http://localhost:3000
DATABASE_URL=postgres://postgres:random12345@db/ssi-service
# DB settings
POSTGRES_PASSWORD=random12345
POSTGRES_DB=ssi-service
# FE dev settings
BASE_URL=http://localhost:8080
# IRMA settings
IRMASERVER_URL=http://localhost:8088
IRMASERVER_VERBOSE=1
IRMASERVER_PRODUCTION=true
version: "3.3"
services:
db:
image: postgres:12
environment:
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- db-data:/var/lib/postgresql/data
backend:
build: backend
ports:
- "3000:3000"
environment:
- SSI_SERVER_URL
- IRMASERVER_URL
- DATABASE_URL
volumes:
- ./backend:/app:cached
frontend:
build: frontend
ports:
- "8080:8080"
environment:
- SSI_SERVER_URL
volumes:
- ./frontend:/app:cached
irma:
build: irma
ports:
- "8088:8088"
environment:
- IRMASERVER_URL
- IRMASERVER_VERBOSE
- IRMASERVER_PRODUCTION
volumes:
- irma-schemes:/root/.local/share/irma/irma_configuration
volumes:
irma-schemes:
db-data:
version: "3.3"
services:
db:
image: postgres:12
environment:
- POSTGRES_PASSWORD
- POSTGRES_DB
volumes:
- db-data:/var/lib/postgresql/data
networks:
- internal
backend:
build:
context: backend
dockerfile: Dockerfile.prod
environment:
- SSI_SERVER_URL
- IRMASERVER_URL
- DATABASE_URL
depends_on:
- db
networks:
- proxy
- internal
labels:
traefik.enable: true
traefik.http.routers.ssi-backend.tls.certresolver: letsencrypt
traefik.http.routers.ssi-backend.tls.options: safeTLSOptions@file
traefik.http.routers.ssi-backend.middlewares: securityHeaders@file
traefik.http.routers.ssi-backend.rule: Host(`service.ssi-lab.sensorlab.tno.nl`) && PathPrefix(`/api`, `/socket.io`)
frontend:
build:
context: frontend
dockerfile: Dockerfile.prod
environment:
- SSI_SERVER_URL
networks:
- proxy
labels:
traefik.enable: true
traefik.http.routers.ssi-frontend-insecure.rule: Host(`service.ssi-lab.sensorlab.tno.nl`)
traefik.http.routers.ssi-frontend-insecure.middlewares: redirectToHttps@file,securityHeaders@file
traefik.http.routers.ssi-frontend.tls.certresolver: letsencrypt
traefik.http.routers.ssi-frontend.tls.options: safeTLSOptions@file
traefik.http.routers.ssi-frontend.middlewares: securityHeaders@file
traefik.http.routers.ssi-frontend.rule: Host(`service.ssi-lab.sensorlab.tno.nl`)
irma:
build: irma
environment:
- IRMASERVER_URL
- IRMASERVER_VERBOSE
- IRMASERVER_PRODUCTION
volumes:
- irma-schemes:/root/.local/share/irma/irma_configuration
networks:
- proxy
labels:
traefik.enable: true
traefik.http.routers.ssi-irma-insecure.rule: Host(`irma.ssi-lab.sensorlab.tno.nl`)
traefik.http.routers.ssi-irma-insecure.middlewares: redirectToHttps@file,securityHeaders@file
traefik.http.routers.ssi-irma.tls.certresolver: letsencrypt
traefik.http.routers.ssi-irma.tls.options: safeTLSOptions@file
traefik.http.routers.ssi-irma.middlewares: securityHeaders@file
traefik.http.routers.ssi-irma.rule: Host(`irma.ssi-lab.sensorlab.tno.nl`)
volumes:
irma-schemes:
db-data:
networks:
internal:
proxy:
external: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment