-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (40 loc) · 1.05 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
services:
jquerysite:
depends_on:
- jquerydb
build:
context: .
dockerfile: Dockerfile
container_name: jquerysite
environment:
- WORDPRESS_DB_HOST=jquerydb:3306
- WORDPRESS_DB_USER=root
- WORDPRESS_DB_PASSWORD=root
- JQUERY_WP_HTTP_PORT=${JQUERY_WP_HTTP_PORT}
volumes:
- ./jquery-wp-content:/var/www/html/wp-content
- ./uploads:/var/www/html/wp-content/uploads:rw
- ./wp-config.php:/var/www/html/wp-config.php
- ./ssl:/etc/apache2/ssl
- ./apache/.htaccess:/var/www/html/.htaccess
- ./apache/000-default.conf:/etc/apache2/sites-available/000-default.conf
ports:
- "${JQUERY_WP_HTTP_PORT:-80}:80"
- "${JQUERY_WP_HTTPS_PORT:-443}:443"
networks:
- jquerynet
jquerydb:
image: mariadb:10.11
container_name: jquerydb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- jquerydbdata:/var/lib/mysql
networks:
- jquerynet
volumes:
jquerydbdata:
networks:
jquerynet:
driver: bridge