-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.16 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
services:
lighttpd:
container_name: lighttpd_dev
image: gists/lighttpd
networks:
- internal
ports:
- "8080:80"
volumes:
- ./lighttpd.conf:/etc/lighttpd/lighttpd.conf
- ./mod_fastcgi_fpm.conf:/etc/lighttpd/mod_fastcgi_fpm.conf
- ./code:/var/www/html
mariadb:
container_name: maria10_6
image: mariadb:10.4.26
restart: "no"
environment:
MARIADB_ROOT_PASSWORD: super_secret
MARIADB_PASSWORD: my_cool_secret
MARIADB_USER: demo_user
MARIADB_DATABASE: demo
ports:
- "3306:3306"
networks:
- internal
php-fpm:
build:
context: ./
dockerfile: fpm.Dockerfile
networks:
- internal
ports:
- "9000:9000"
volumes:
- ./code:/var/www/html
- ./xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
php_composer:
container_name: php_composer
image: composer:2.4.1 #lock PHP to 8.1.10
volumes:
- ./code:/app #composer's default working dir is app
command: ["composer", "install"]
networks:
internal:
driver: bridge