-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
127 lines (117 loc) · 2.43 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3"
services:
## Development server ##
dev-server:
profiles:
- dev
build:
dockerfile: Dockerfile
context: .
target: dev
env_file: .env
ports:
- "3000:3000"
volumes:
- ".:/src"
networks:
- ldap
- redis
## Production servers ##
server:
profiles:
- prod
build: .
restart: unless-stopped
env_file: .env
networks:
- prod
- redis
https-portal:
profiles:
- prod
image: steveltn/https-portal:1
ports:
- "80:80"
- "443:443"
restart: unless-stopped
networks:
- prod
volumes:
- ./data/https-portal/certs:/var/lib/https-portal
environment:
# For production, change here to "production" once it works
STAGE: staging
DOMAINS: >-
${DEPLOY_DOMAIN} -> http://server:3000
env_file: .env
# Save account registration information in Redis
redis:
profiles:
- dev
- prod
image: redis/redis-stack:7.2.0-v4
command: redis-stack-server --appendonly yes --requirepass ${REDIS_PASSWORD}
ports:
- "127.0.0.1:6379:6379"
volumes:
- "./data/redis:/data"
networks:
- redis
env_file: .env
## LDAP servers for local development ##
slapd: # OpenLDAPサーバ
profiles:
- ldap
image: osixia/openldap:1.5.0
container_name: slapd
restart: on-failure:3
hostname: ${LDAP_SERVER_FQDN}
ports:
- 127.0.0.1:8636:636
- 127.0.0.1:8389:389
environment:
LDAP_TLS: "false"
LDAP_TLS_ENFORCE: "false"
LDAP_READONLY_USER: "true"
LDAP_READONLY_USER_USERNAME: "readonly"
env_file:
- .ldap.env
volumes:
- ./data/ldap_db:/var/lib/ldap
- ./data/ldap_config:/etc/ldap/slapd.d
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- ldap
# Ldap Account Manager (LAM) server, for manage local LDAP server
lam:
profiles:
- ldap
build:
dockerfile: ./lam.dockerfile
context: .
container_name: lam
restart: on-failure:3
environment:
LDAP_SERVER: "ldap://slapd"
LAM_LANG: "ja_JP"
env_file:
- .ldap.env
depends_on:
- slapd
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- ldap
ports:
- "8081:80"
networks:
prod: {}
ldap: {}
redis: {}