-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
57 lines (52 loc) · 1.11 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
version: '3'
#
#######################################
# Folder structure
#######################################
#
# (1) This boilerplate assumes that `index.php` is stored inside `htdocs`.
#
# However, for a more secure setup, the following is recommended:
# (2) In addition to (1), `assets`, `index.php` & `.htaccess` are
# stored inside `public`.
#
# See https://getkirby.com/docs/guide/configuration#custom-folder-setup
#
services:
php:
build:
context: htdocs
dockerfile: docker/php.dockerfile
volumes:
- sock:/sock
# (1)
- ./htdocs:/app
# (2)
# - ./htdocs/public:/app/public
# - ./htdocs/site:/app/site
# - ./htdocs/storage:/app/storage
# - ./htdocs/vendor:/app/vendor
networks:
- php-net
nginx:
build:
context: htdocs
dockerfile: docker/nginx.dockerfile
ports:
- 80:80
volumes:
- sock:/sock
# (1)
- ./htdocs:/app
# (2)
# - ./htdocs/public:/app/public:ro
depends_on:
- php
networks:
- php-net
volumes:
sock:
driver: local
networks:
php-net:
driver: bridge