-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 973 Bytes
/
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
version: '3'
services:
db:
image: mysql:8
volumes:
- db_data:/var/lib/mysql
restart: always
platform: linux/amd64
environment:
MYSQL_RANDOM_ROOT_PASSWORD: true
MYSQL_DATABASE: ${MYSQL_DATABASE:-wordpress}
MYSQL_USER: ${MYSQL_USER:-wordpress}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-unsafepassword}
networks:
- wpsite
wordpress:
depends_on:
- db
build: wordpress/
ports:
- '${WORDPRESS_PORT:-8000}:80'
restart: always
volumes: ['./:/var/www/html/wp-content/plugins/nlds-community-blocks']
environment:
WORDPRESS_DB_HOST: ${MYSQL_HOST:-db}:${MYSQL_PORT:-3306}
WORDPRESS_DB_USER: ${MYSQL_USER:-wordpress}
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD:-unsafepassword}
networks:
- wpsite
networks:
wpsite:
volumes:
db_data: