-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.27 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
version: '3'
services:
redis:
image: 'redis:latest'
networks:
- fooclient-network
nginx:
image: 'nginx:latest'
ports:
- '80:80'
- '443:443'
volumes:
- './:/var/www/html:delegated'
- './.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:delegated'
- './.docker/ssl:/etc/ssl:delegated'
depends_on:
- phpfpm
networks:
- fooclient-network
phpfpm:
image: 'junaidbhura/wp-php-fpm-dev:8.0'
environment:
XDEBUG_MODE: 'off'
volumes:
- './:/var/www/html:delegated'
- './.docker/php-fpm/wp-cli.yml:/var/www/html/wp-cli.yml:delegated'
- './.docker/php-fpm/custom.ini:/usr/local/etc/php/conf.d/custom.ini:delegated'
user: '33:33'
depends_on:
- redis
- database
networks:
- fooclient-network
database:
image: 'mariadb:latest'
environment:
MYSQL_ROOT_PASSWORD: root
networks:
- fooclient-network
volumes:
- 'db_data:/var/lib/mysql'
- './.docker/mysql/my.cnf:/etc/mysql/my.cnf'
ports:
- '3306:3306'
mailhog:
image: 'mailhog/mailhog:latest'
ports:
- '8025:8025'
- '1025:1025'
networks:
- fooclient-network
networks:
fooclient-network:
driver: bridge
volumes:
db_data: