forked from ging/fiware-idm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
103 lines (98 loc) · 2.67 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
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
version: "3.5"
services:
keyrock:
image: capesuite/idm
build: .
container_name: cape-keyrock
hostname: keyrock
networks:
default:
ipv4_address: 172.25.1.5
depends_on:
- mysql-db
ports:
- "3000:3000"
- "9229:9229"
#- "443:443"
environment:
- IDM_OAUTH_ACC_LIFETIME=86400
- IDM_CORS_ORIGIN=true
- IDM_CORS_ENABLED=true
- IDM_CORS_PREFLIGHT=true
- DEBUG=idm:*
- IDM_DB_HOST=mysql-db
- IDM_HOST=http://localhost:3000
- IDM_PORT=3000
- IDM_DB_NAME=idm
- IDM_DB_SEED=true
- IDM_EMAIL_HOST=localhost
- IDM_EMAIL_PORT=25
- IDM_EMAIL_ADDRESS=noreply@localhost
# Development use only
# Use Docker Secrets for Sensitive Data
- IDM_DB_PASS=secret
- IDM_DB_USER=root
- IDM_ADMIN_USER=admin
- IDM_ADMIN_PASS=1234
# If sending eMails point to any STMP server
- IDM_SPID_ENABLED=false
- IDM_SPID_GATEWAY_HOST=http://localhost:3000
- IDM_SPID_NODE_HOST=https://idptest.spid.gov.it
volumes:
- applications_certs:/opt/fiware-idm/certs/applications
#- ./:/opt/fiware-idm
#- /opt/fiware-idm/node_modules/
mysql-db:
restart: always
image: mysql:5.7
hostname: mysql-db
container_name: db-mysql
expose:
- "3306"
ports:
- "3306:3306"
networks:
default:
ipv4_address: 172.25.1.6
environment:
# Development use only
# Use Docker Secrets for Sensitive Data
- "MYSQL_ROOT_PASSWORD=secret"
- "MYSQL_ROOT_HOST=%"
volumes:
- mysql-db:/var/lib/mysql
# Configure the SMTP settings below as necessary,
# For example to use Gmail SMTP
#
# server address: smtp.gmail.com
# username: Your Gmail address (for example, [email protected])
# password: Your Gmail password
# port (TLS): 587
# port (SSL): 465
# TLS/SSL required: Yes
mailer:
restart: always
image: mazdermind/docker-mail-relay
hostname: mailer
container_name: mailer
ports:
- "25:25"
environment:
- SMTP_LOGIN=<login> # Login to connect to the external relay
- SMTP_PASSWORD=<password> # Password to connect to the external relay
- EXT_RELAY_HOST=<hostname> # External relay DNS name
- EXT_RELAY_PORT=25
- ACCEPTED_NETWORKS=172.25.1.0/24
- USE_TLS=no
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1400
ipam:
config:
- subnet: 172.25.1.0/24
volumes:
mysql-db: ~
applications_certs: