docker-compose_vserver-001.yml 3.19 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
---
version: "3.4"

services:
  facade:
    image: "reqesidta/facade"
    container_name: "reqesidta_facade"
    labels:
      - "traefik.enable=true"
    build:
      context: ./facade
    command:
      --providers.docker=true
      --providers.docker.exposedbydefault=false
      --entryPoints.web.address=:80
      --log.level=debug
    ports:
      - "50080:80"
    networks:
      - reqesidta_net
    volumes:
      # So that Traefik can listen to the Docker events
      - /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
37
38
    # ports:
    #   - "127.0.0.1:8443:8443"
39
40
41
42
43
44
45
46
47
48
49
50
51
52
    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
53
54
    # ports:
    #   - "127.0.0.1:8444:8443"
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
    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
89
90
91
92
    # ports:
    #   - "127.0.0.1:28080:8080"
    # volumes:
    #   - ./ssa/dist:/opt/jboss/wildfly/standalone/deployments/:rw
93
94
95
96
97
98
99
100
101
102
    networks:
      reqesidta_net:
        aliases:
          - ssa.docker.reqesidta.de

  sam:
    image: "reqesidta/sam"
    container_name: "reqesidta_sam"
    build:
      context: ./sam
103
104
    # ports:
    #   - "127.0.0.1:38080:8080"
105
106
107
108
    networks:
      reqesidta_net:
        aliases:
          - sam.docker.reqesidta.de
109
  
110
  webui:
111
112
113
114
115
116
    image: "reqesidta/webui"
    container_name: "reqesidta_web-ui"
    labels:
      - "traefik.enable=true"
      - "traefik.http.services.webui.loadbalancer.server.port=80"
      - "traefik.http.routers.webui.rule=PathPrefix(`/`)"
117
      - "traefik.http.routers.webui.entrypoints=web"
118
119
120
121
122
123
124
125
    build:
      context: ./web-ui
    ports:
      - "127.0.0.1:48080:80"
    networks:
      reqesidta_net:
        aliases:
          - webui.docker.reqesidta.de
126
127
128
129

networks:
  reqesidta_net:
    driver: bridge