-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
57 lines (54 loc) · 1.3 KB
/
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:
web:
image: nginx:latest
ports:
- "10000:80"
- "10001:443"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./:/var/www/html
- ./docker/log/nginx:/var/log/nginx
depends_on:
- php
restart: unless-stopped
database:
image: mysql:8.2
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
ports:
- "10010:3306"
volumes:
- ./docker/fs/mysql:/var/lib/mysql
- .:/tmp:delegated
restart: unless-stopped
php:
build:
context: ./docker/php
dockerfile: Dockerfile
args:
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- ./:/var/www/html
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./docker/php/conf.d/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./docker/php/conf.d/redis.ini:/usr/local/etc/php/conf.d/redis.ini
- ./docker/log/php:/var/log/php
environment:
UID: ${UID:-1000}
GID: ${GID:-1000}
ports:
- "10020:9000"
depends_on:
- database
restart: unless-stopped
redis:
image: redis:latest
ports:
- "10030:6379"
volumes:
- ./docker/fs/redis:/data
restart: unless-stopped