-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
125 lines (119 loc) · 3.05 KB
/
compose.yml
File metadata and controls
125 lines (119 loc) · 3.05 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
name: typo3-demo
x-logging: &default-logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
web:
image: ghcr.io/netresearch/typo3-demo:latest
build:
context: .
dockerfile: docker/web/Dockerfile
logging: *default-logging
depends_on:
db:
condition: service_healthy
valkey:
condition: service_healthy
environment:
MARIADB_HOST: db
MARIADB_DATABASE: ${MARIADB_DATABASE:-typo3}
MARIADB_USER: ${MARIADB_USER:-typo3}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-typo3}
TYPO3_CONTEXT: ${TYPO3_CONTEXT:-Development/Docker}
TYPO3_DOMAIN: ${TYPO3_DOMAIN:-localhost}
TYPO3_ENCRYPTION_KEY: ${TYPO3_ENCRYPTION_KEY:-}
volumes:
- typo3-fileadmin:/var/www/public/fileadmin
- typo3-var:/var/www/var
- typo3-config:/var/www/config/system
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/"]
interval: 15s
timeout: 5s
retries: 5
start_period: 300s
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 1G
db:
image: mariadb:11
logging: *default-logging
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-root}
MARIADB_DATABASE: ${MARIADB_DATABASE:-typo3}
MARIADB_USER: ${MARIADB_USER:-typo3}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-typo3}
volumes:
- typo3-db:/var/lib/mysql
- ./data/db.sql.gz:/docker-entrypoint-initdb.d/db.sql.gz:ro
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 512M
valkey:
image: valkey/valkey:8-alpine
logging: *default-logging
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 128M
caddy:
image: caddy:2-alpine
logging: *default-logging
ports:
- "${CADDY_HTTP_PORT:-80}:80"
- "${CADDY_HTTPS_PORT:-443}:443"
- "${CADDY_HTTPS_PORT:-443}:443/udp"
volumes:
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
environment:
TYPO3_DOMAIN: ${TYPO3_DOMAIN:-localhost}
depends_on:
web:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:2019/config/"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
restart: unless-stopped
security_opt:
- no-new-privileges:true
deploy:
resources:
limits:
memory: 256M
volumes:
typo3-db:
typo3-fileadmin:
typo3-var:
typo3-config:
caddy-data:
caddy-config: