-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (54 loc) · 1.32 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
x-volumes:
&default-volumes
volumes:
- ./private:/app/private:delegated
- ./web/sites/default/files:/app/web/sites/default/files:delegated
services:
cli:
image: &cli-image ${COMPOSE_PROJECT_NAME:-drupal}-cli
build:
context: .
dockerfile: .docker/cli.dockerfile
<<: *default-volumes
depends_on:
database:
condition: service_healthy
memcached:
condition: service_started
php:
build:
context: .
dockerfile: .docker/php.dockerfile
args:
CLI_IMAGE: *cli-image
<<: *default-volumes
depends_on:
- cli
nginx:
build:
context: .
dockerfile: .docker/nginx.dockerfile
args:
CLI_IMAGE: *cli-image
<<: *default-volumes
depends_on:
- cli
database:
image: mariadb:11.0
volumes:
- mariadb:/var/lib/mysql
environment:
MARIADB_RANDOM_ROOT_PASSWORD: 'true'
MARIADB_DATABASE: ${MARIADB_DATABASE:-drupal10}
MARIADB_USER: ${MARIADB_USER:-drupal10}
MARIADB_PASSWORD: ${MARIADB_PASSWORD:-drupal10}
healthcheck:
test: ["CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized"]
interval: 2s
retries: 120
memcached:
image: memcached:1.6-alpine
environment:
MEMCACHED_MAX_ITEM_SIZE: 8388608
volumes:
mariadb: