-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.yml
43 lines (40 loc) · 1.36 KB
/
docker-compose.yml
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
version: '3'
services:
mysql:
image: mysql/mysql-server:5.7
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=dgc
- MYSQL_ROOT_PASSWORD=admin # do not use this for production deployments
- MYSQL_USER=dgc_adm
- MYSQL_PASSWORD=admin # do not use this for production deployments
networks:
persistence:
dgc-gateway:
build: .
image: eu-digital-green-certificates/dgc-gateway
volumes:
- ./certs:/ec/prod/app/san/dgc
ports:
- 8080:8080
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=mysql,docker
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/dgc
- SPRING_DATASOURCE_USERNAME=dgc_adm
- SPRING_DATASOURCE_PASSWORD=admin # do not use this for production deployments
- DGC_TRUSTANCHOR_KEYSTOREPATH=/ec/prod/app/san/dgc/ta.jks
- DGC_TRUSTANCHOR_KEYSTOREPASS=dgcg-p4ssw0rd # do not use this for production deployments
- DGC_TRUSTANCHOR_CERTIFICATEALIAS=dgcg_trust_anchor
- DGC_PUBLICATION_KEYSTORE_KEYSTOREPATH=/ec/prod/app/san/dgc/publication-signer-tst.jks
- DGC_PUBLICATION_KEYSTORE_KEYSTOREPASS=dgc-p4ssw0rd # do not use this for production deployments
- DGC_PUBLICATION_KEYSTORE_CERTIFICATEALIAS=dgc_tst_publication
depends_on:
- mysql
networks:
backend:
persistence:
networks:
persistence:
backend: