-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 854 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
33 lines (31 loc) · 854 Bytes
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
version: '3.1'
services:
wordpress:
container_name: wordpress
build:
context: .
dockerfile: Dockerfile
ports:
- 8082:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
WP_DEBUG: "true"
volumes:
- ./packages/join-block:/var/www/html/wp-content/plugins/join-form
db:
# Pinned: the unpinned `mysql` tag moved to 9.x, which refuses to start
# against existing 8.x data ("Cannot upgrade from 80200 to 90400"). 8.2
# matches the data already in the db volume.
image: mysql:8.2
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
volumes:
db: