-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (62 loc) · 1.71 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (62 loc) · 1.71 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
services:
init:
image: ghcr.io/soerennb/extplorer3:latest
entrypoint: ["/usr/local/bin/init-code"]
restart: "no"
environment:
- EXTPLORER_CODE_FORCE=0
volumes:
- extplorer_code:/var/www/html
- extplorer_writable:/var/www/html/writable
networks:
- extplorer-net
app:
image: ghcr.io/soerennb/extplorer3:latest
restart: unless-stopped
volumes:
- extplorer_code:/var/www/html
- extplorer_writable:/var/www/html/writable
environment:
# CI4 Configuration
- CI_ENVIRONMENT=production
- WRITEPATH=/var/www/html/writable
# eXtplorer Configuration
- EXTPLORER_ADMIN_USER=admin
- EXTPLORER_ADMIN_PASS=admin1234
# Apply env settings into writable/settings.php on every boot
# - EXTPLORER_APPLY_ENV=1
# PHP Limits (Optional overrides)
# You can use a custom php.ini if needed
networks:
- extplorer-net
depends_on:
init:
condition: service_completed_successfully
healthcheck:
test: ["CMD-SHELL", "php -r '$$fp=@fsockopen(\"127.0.0.1\",9000); if($$fp){fclose($$fp); exit(0);} exit(1);'"]
interval: 30s
timeout: 5s
retries: 3
web:
image: nginx:alpine
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- extplorer_code:/var/www/html:ro
depends_on:
- app
networks:
- extplorer-net
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
networks:
extplorer-net:
driver: bridge
volumes:
extplorer_code:
extplorer_writable: