-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
102 lines (93 loc) · 2.91 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
# Copyright 2011-2024 The OTP authors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# Main docker-compose file.
# Run `docker compose up` to start an otp database, ldap, ssh, mail and admin tool servers.
# To run it with otp, you should also run docker-compose.dev.yml or docker-compose.war.yml
version: '3.0'
services:
postgres:
container_name: otp-dev-postgres
env_file:
- .env
build:
context: ./docker/database/
dockerfile: Dockerfile.dev
ports:
- "${HOST_IP:-127.0.0.1}:${POSTGRES_PORT:-5432}:5432"
volumes:
- db_data:/var/lib/postgresql/data
networks:
otp:
keycloak:
build: docker/keycloak
container_name: otp-dev-keycloak
env_file:
- .env
ports:
- "${HOST_IP:-127.0.0.1}:${KEYCLOAK_PORT:-8100}:8080"
networks:
otp:
open-ldap:
container_name: otp-dev-ldap
build: docker/ldap
ports:
- "${HOST_IP:-127.0.0.1}:${OPEN_LDAP_PORT:-1389}:389"
volumes:
- ldap_data:/var/lib/ldap
- ldap_config:/etc/ldap/slapd.d
command: --copy-service
networks:
otp:
php-ldap-admin:
image: osixia/phpldapadmin:latest
container_name: otp-dev-ldap-admin
ports:
- "${HOST_IP:-127.0.0.1}:${PHP_LDAP_ADMIN_PORT:-8090}:80"
environment:
PHPLDAPADMIN_LDAP_HOSTS: open-ldap
PHPLDAPADMIN_HTTPS: "false"
networks:
otp:
openssh-server:
container_name: otp-dev-ssh-server
build: docker/ssh
env_file:
- .env
volumes:
- filesystem:/home/otp/filesystem
ports:
- "${HOST_IP:-127.0.0.1}:${SSH_PORT:-2222}:2222"
networks:
otp:
mailhog:
image: mailhog/mailhog:latest
container_name: otp-dev-mailhog
ports:
- "${HOST_IP:-127.0.0.1}:${MAILHOG_PORT_GUI:-8025}:8025"
- "${HOST_IP:-127.0.0.1}:${MAILHOG_PORT_MAIL:-1025}:1025"
networks:
otp:
networks:
otp:
volumes:
db_data:
ldap_data:
ldap_config:
filesystem: