-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.development.yml
More file actions
68 lines (64 loc) · 1.91 KB
/
compose.development.yml
File metadata and controls
68 lines (64 loc) · 1.91 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
name: source-web-console
services:
cache:
image: valkey/valkey:8
command: >
--requirepass ${CACHE_PASSWORD}
--maxmemory 128mb
--maxmemory-policy allkeys-lru
volumes:
- valkey_data:/data
healthcheck:
test: valkey-cli --raw incr ping
retries: 3
timeout: 5s
start_period: 30s
database:
image: mariadb:12
command: --collation-server=utf8mb4_unicode_ci
volumes:
- mariadb_data:/var/lib/mysql
environment:
TZ: ${APP_TIMEZONE}
MARIADB_DATABASE: ${DATABASE_NAME}
MARIADB_USER: ${DATABASE_USERNAME}
MARIADB_PASSWORD: ${DATABASE_PASSWORD}
MARIADB_AUTO_UPGRADE: true
MARIADB_INITDB_SKIP_TZINFO: true
MARIADB_RANDOM_ROOT_PASSWORD: true
healthcheck:
test: healthcheck.sh --su-mysql --connect --innodb_initialized
retries: 3
timeout: 5s
start_period: 30s
server:
image: source-web-console
command: docker/scripts/development/entrypoint.sh
volumes:
- .:/var/www/html:cached
- /var/www/html/.git
- /var/www/html/vendor
- /var/www/html/var
- /var/www/html/node_modules
depends_on:
cache:
condition: service_healthy
database:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: curl -f http://localhost:8000/
retries: 3
timeout: 5s
start_period: 30s
build:
target: development
context: .
dockerfile: ./docker/Dockerfile
ports:
- "8000:8000"
- "8443:8443/udp"
volumes:
valkey_data:
mariadb_data: