-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
133 lines (132 loc) · 3.56 KB
/
docker-compose-dev.yml
File metadata and controls
133 lines (132 loc) · 3.56 KB
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
128
129
130
131
132
133
name: pilos-dev
x-docker-build-data: &app-image
image: "pilos/pilos:local-dev"
build:
context: ./
dockerfile: docker/app/Dockerfile
args:
WWWGROUP: "${WWWGROUP}"
WWWUSER: "${WWWUSER}"
services:
app:
<<: *app-image
ports:
- "${APP_PORT:-80}:80"
- "${APP_SSL_PORT:-443}:443"
- "${DOCS_PORT:-3000}:3000"
- "${VITE_PORT:-1073}:${VITE_PORT:-1073}"
environment:
DEV_MODE: "true"
ENABLE_XDEBUG: "${ENABLE_XDEBUG:-no}"
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
PHP_FPM_PM_MAX_CHILDREN: "${PHP_FPM_PM_MAX_CHILDREN:-100}"
NGINX_WORKER_PROCESSES: "${NGINX_WORKER_PROCESSES:-auto}"
TRUSTED_PROXIES: "*"
healthcheck:
test: curl --fail http://localhost/ping || exit 1
interval: 10s
retries: 6
timeout: 5s
volumes:
- "./:/var/www/html/"
- "./ssl:/local/certs/"
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
cron:
<<: *app-image
env_file:
- .env
entrypoint:
[
"/bin/sh",
"-c",
"pilos-cli create-spool-group && pilos-cli schedule:work",
]
volumes:
- "./:/var/www/html/"
depends_on:
app:
condition: service_healthy
horizon:
<<: *app-image
env_file:
- .env
entrypoint:
[
"/bin/sh",
"-c",
"pilos-cli create-spool-group && pilos-cli horizon:listen --poll",
]
volumes:
- "./:/var/www/html/"
depends_on:
app:
condition: service_healthy
db:
image: "mariadb:11"
environment:
MARIADB_ROOT_PASSWORD: "${DB_PASSWORD}"
MARIADB_ROOT_HOST: "%"
MARIADB_DATABASE: "${DB_DATABASE}"
MARIADB_USER: "${DB_USERNAME}"
MARIADB_PASSWORD: "${DB_PASSWORD}"
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "yes"
volumes:
- "mariadb:/var/lib/mysql"
- "./tests/Utils/create-mariadb-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
retries: 12
timeout: 5s
redis:
image: redis:8-alpine
restart: unless-stopped
volumes:
- redis:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 5s
retries: 12
timeout: 5s
mailpit:
image: "axllent/mailpit:latest"
ports:
- "${FORWARD_MAILPIT_PORT:-1025}:1025"
- "${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025"
phpmyadmin:
image: "phpmyadmin:latest"
ports:
- "${FORWARD_PHPMYADMIN_PORT:-8080}:80"
environment:
MYSQL_USERNAME: "${DB_USERNAME}"
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
PMA_HOST: db
PMA_USER: "${DB_USERNAME}"
PMA_PASSWORD: "${DB_PASSWORD}"
UPLOAD_LIMIT: 2G
openldap:
image: osixia/openldap
environment:
LDAP_ORGANISATION: "Demo University"
LDAP_DOMAIN: "university.org"
LDAP_READONLY_USER: "true"
LDAP_TLS_VERIFY_CLIENT: "never"
volumes:
- "./docker/openldap:/container/service/slapd/assets/config/bootstrap/ldif/custom"
command: --copy-service
phpldapadmin:
image: osixia/phpldapadmin
ports:
- "${FORWARD_PHPLDAPADMIN_PORT:-6680}:80"
environment:
PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'Local LDAP': [{'server': [{'host': 'openldap'}]},{'login': [{'bind_id': 'cn=admin,dc=university,dc=org'},{'bind_pass': 'admin'},{'auth_type': 'config'}]}]}]"
PHPLDAPADMIN_HTTPS: "false"
volumes:
mariadb:
driver: local
redis:
driver: local