-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.43 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
services:
nginx:
build:
context: .
dockerfile: ./docker/images/nginx/1.27/Dockerfile
networks:
- www
depends_on:
- php
ports:
- 8080:80
volumes:
# binding all the folders from the application
- ./src:/var/data/www:cached
php:
networks:
- www
build:
context: .
dockerfile: ./docker/images/php/8.4/Dockerfile
args:
USER_ID: ${UID:-0}
GROUP_ID: ${GID:-0}
volumes:
# Mount point for project files
- ./src:/var/data/www:cached
# mount composer config files to not lose them
- composer:/${USER}/.composer
# Load PHP ini files
- ./docker/config/php/8.4/php.ini:/usr/local/etc/php/conf.d/php.ini:ro
# Load PHP-FPM config files
- ./docker/config/php-fpm/8.4/zz-docker.conf:/usr/local/etc/php-fpm.d/zz-docker.conf:ro
working_dir: /var/data/www
db:
image: mariadb:11.5
networks:
- www
volumes:
- dbdata:/var/lib/mysql
ports:
- 33060:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: user
MYSQL_PASSWORD: pass
MYSQL_DATABASE: database
networks:
www:
volumes:
dbdata:
composer: