-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 939 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 939 Bytes
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
services:
apache:
image: leafok/lbbs-apache
build:
context: .
dockerfile: Dockerfile/dockerfile.apache
ports:
- "8080:8081"
volumes:
- www-data:/var/www/html
- apache-logs:/usr/local/apache2/logs
depends_on:
- php
networks:
- app-network
php:
image: leafok/lbbs-php
build:
context: .
dockerfile: Dockerfile/dockerfile.php
volumes:
- www-data:/var/www/html
- php-sessions:/var/lib/php/sessions
- apache-logs:/usr/local/apache2/logs
networks:
- app-network
expose:
- "9000"
command: [ "php-fpm" ]
networks:
app-network:
driver: bridge
volumes:
www-data:
# Volume for persistent storage of web data
driver: local
php-sessions:
# Volume for persistent storage of PHP session data
driver: local
apache-logs:
# Volume for persistent storage of Apache logs
driver: local