-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yaml
59 lines (56 loc) · 1.59 KB
/
docker-compose.yaml
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
59
version: '3.8'
services:
buildserver:
container_name: demovox-npm-build
hostname: demovox-npm-build
build:
context: .
dockerfile: ./docker/buildserver.Dockerfile
extra_hosts:
- 'host.docker.internal:host-gateway'
command: bash -c "npm install && composer install --no-dev && tail -f /dev/null"
volumes:
- './:/var/demovox'
- './docker/php.ini:/etc/php/7.4/cli/conf.d/custom.ini'
- './docker/xdebug3.ini:/etc/php/7.4/cli/conf.d/xdebug3.ini'
wordpress:
container_name: demovox-wordpress
hostname: demovox-wordpress
depends_on:
- db
- mailhog
build:
context: .
dockerfile: ./docker/wordpress.Dockerfile
ports:
- '80:80'
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
WORDPRESS_DB_HOST: demovox-db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: password
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DEBUG: 1
WORDPRESS_CONFIG_EXTRA: |
define('WP_DEBUG_DISPLAY', false );
volumes:
- './:/var/www/html/wp-content/plugins/demovox'
- './docker/php.ini:/usr/local/etc/php/conf.d/custom.ini'
- './docker/xdebug3.ini:/usr/local/etc/php/conf.d/xdebug3.ini'
db:
container_name: demovox-db
image: 'mariadb:10.3'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: wordpress
MYSQL_PASSWORD: password
MYSQL_DATABASE: wordpress
ports:
- '3306:3306'
mailhog:
image: mailhog/mailhog
hostname: demovox-mailhog
container_name: demovox-mailhog
ports:
- '8025:8025'