-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.01 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
version: '3'
services:
#
# an apache+php powered webserver service
#
app:
build:
context: ./docker
dockerfile: app
args:
debug: 1
environment:
- CORE_ENVIRONMENT=dev
ports:
- '8381:80'
volumes:
- './docker/volumes/app/www:/var/www/html:cached'
- './.:/var/www/html/src'
- './.:/var/www/html/src/vendor/examplevendor/example-app:ro'
- './docker/volumes/app/apache2/sites-enabled:/etc/apache2/sites-enabled:cached'
- './docker/volumes/app/log:/var/log/honeycomb:delegated'
links:
- db
- memcached
restart: always
#
# a simple mariadb
#
db:
image: mariadb:10.3.21
volumes:
- 'db-data:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=database
ports:
- '3312:3306'
restart: always
#
# an optional memcached
#
memcached:
image: 'memcached:alpine'
restart: always
volumes:
# we're using a named volume to persist DB's data
db-data: