-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.29 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.6"
services:
nginx:
image: nginx:latest
container_name: awasqa-nginx
ports:
- "8082:80"
volumes:
- ./docker/nginx/config:/etc/nginx/conf.d
- ./:/var/www/html:rw,cached
- ./docker/nginx/certs:/etc/certs
depends_on:
- wordpress
restart: always
mysql:
image: mariadb
container_name: awasqa-mysql
command: --general-log=1 --general-log-file=/tmp/mysql.log
volumes:
- awasqa-mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=awasqa
restart: always
ports:
- "3308:3306"
wordpress:
container_name: awasqa-wordpress
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/var/www/html:rw,cached
- ./docker/wordpress/php.ini:/usr/local/etc/php/conf.d/php.ini
environment:
- WORDPRESS_DB_NAME=awasqa
- WORDPRESS_TABLE_PREFIX=wp_
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_PASSWORD=password
- WP_CLI_ALLOW_ROOT=true
- PAGER=more
depends_on:
- mysql
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
composer:
image: composer
working_dir: /var/www/html
restart: "no"
volumes:
- ./:/var/www/html:rw,cached
volumes:
awasqa-mysql: