-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.66 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
58
version: '3.4'
services:
nginx:
container_name: orct2p_nginx
image: nginx:1.23.1
ports:
- "${HTTP_PORT}:80"
volumes:
- ./code:/var/www/code
- ./docker/nginx/nginx.dev.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/logs:/var/log/nginx
env_file:
- .env
depends_on:
- php-fpm
- sass
logging:
options:
max-size: 10m
php-fpm:
container_name: orct2p_php-fpm
build: ./docker/php-fpm
image: orct2p_php-fpm_dev:latest
volumes:
- ./code:/var/www/code
- ./docker/php-fpm/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
env_file:
- .env
depends_on:
- mysql
logging:
options:
max-size: 10m
mysql:
container_name: orct2p_mysql
image: mysql:8.0.16
ports:
- "${MYSQL_DEV_PORT}:3306"
volumes:
- ./docker/mysql/mysql-low-memory.cnf:/etc/mysql/conf.d/mysql-low-memory.cnf:ro
- ./docker/mysql/orct2p.sql:/docker-entrypoint-initdb.d/orct2p.sql:ro
- orct2p-db-dev:/var/lib/mysql
env_file: .env
logging:
options:
max-size: 10m
sass:
container_name: orct2p_sass
image: michalklempa/dart-sass:latest
volumes:
- './code/scss/custom/:/sass/'
- './code/scss/vendor/:/vendor/'
- './code/public/styles:/css/'
logging:
options:
max-size: 10m
volumes:
orct2p-db-dev: