docker-compose.yml 2.86 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: "3.4"

services:
  facade:
    image: "traefik:v2.0"
    container_name: "reqesidta_facade"
    labels:
      - "traefik.enable=true"
    command:
      --providers.docker=true
      --providers.docker.exposedbydefault=false
      --entryPoints.web.address=:80
      --log.level=error
    # change TARGET_PORT to the port your reverse proxy is facing to
    ports:
      - "TARGET_PORT:80"
    networks:
      - reqesidta_net
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  poseidas:
    image: "reqesidta/poseidas"
    container_name: "reqesidta_poseidas"
    labels:
      - "traefik.enable=true"
      - "traefik.http.services.poseidas.loadbalancer.server.port=8443"
      - "traefik.http.routers.poseidas.rule=Path(`/POSeIDAS/eidas-middleware/paosreceiver`)"
      - "traefik.http.routers.poseidas.entrypoints=web"
    build:
      context: ./poseidas
      args:
        JAR_FILE: POSeIDAS-exec.jar
    networks:
      reqesidta_net:
        aliases:
          - poseidas.docker.reqesidta.de
    volumes:
      - ./poseidas/config:/opt/poseidas/config
      - ./poseidas/db:/opt/poseidas/database

  ejbca:
    image: "reqesidta/ejbca"
    container_name: "reqesidta_ejbca"
    build:
      context: ./ejbca
    hostname: localhost:8444
    depends_on:
      - postgres
    environment:
      DATABASE_JDBC_URL: jdbc:postgresql://postgres:5432/ejbca
      DATABASE_USER: ejbca
      DATABASE_PASSWORD: password
    networks:
      reqesidta_net:
        aliases:
          - ejbca.docker.reqesidta.de

  postgres:
    image: "postgres:11.4"
    container_name: "reqesidta_postgres"
    environment:
      POSTGRES_USER: ejbca
      POSTGRES_PASSWORD: password
    networks:
      - reqesidta_net

  ssa:
    image: "reqesidta/ssa"
    container_name: "reqesidta_ssa"
    labels:
      - "traefik.enable=true"
      - "traefik.http.services.ssa.loadbalancer.server.port=8080"
      - "traefik.http.routers.ssa.rule=PathPrefix(`/ssa-server`)"
      - "traefik.http.routers.ssa.entrypoints=web"
    build:
      context: ./ssa
    depends_on:
      - poseidas
      - ejbca
    command: /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0
    networks:
      reqesidta_net:
        aliases:
          - ssa.docker.reqesidta.de

  sam:
    image: "reqesidta/sam"
    container_name: "reqesidta_sam"
    build:
      context: ./sam
    networks:
      reqesidta_net:
        aliases:
          - sam.docker.reqesidta.de

  webui:
    image: "reqesidta/webui"
    container_name: "reqesidta_webui"
    labels:
      - "traefik.enable=true"
      - "traefik.http.services.webui.loadbalancer.server.port=80"
      - "traefik.http.routers.webui.rule=PathPrefix(`/`)"
      - "traefik.http.routers.webui.entrypoints=web"
    build:
      context: ./webui
    networks:
      reqesidta_net:
        aliases:
          - webui.docker.reqesidta.de

networks:
  reqesidta_net:
    driver: bridge