-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·55 lines (51 loc) · 1.12 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
version: "2"
services:
nginx:
image: nginx:1.19.3
ports:
- "80:80"
- "443:443"
volumes:
- ./wordpress:/var/www/html
- ./nginx/log:/var/log/nginx
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
links:
- wordpress:php
depends_on:
- "mariadb"
networks:
- "shared_network"
wordpress:
image: wordpress:php7.4-fpm
environment:
WORDPRESS_DB_HOST: "mariadb"
WORDPRESS_DB_USER: "root"
WORDPRESS_DB_NAME: "wordpress"
WORDPRESS_DB_PASSWORD: ""
WORDPRESS_TABLE_PREFIX: "wp_"
volumes:
- ./wordpress:/var/www/html
- ./php/php.ini:/usr/local/etc/php/php.ini:ro
- ./php/log:/var/log/php
links:
- mariadb:mysql
networks:
- shared_network
depends_on:
- mariadb
mariadb:
image: mariadb:10.5.6
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
networks:
- "shared_network"
networks:
shared_network: {}