-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwordpress-stack-compose.yml
More file actions
36 lines (36 loc) · 1.06 KB
/
wordpress-stack-compose.yml
File metadata and controls
36 lines (36 loc) · 1.06 KB
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
services:
db:
container_name: db
# We use a mariadb image which supports both amd64 & arm64 architecture
image: mariadb:latest
# If you really want to use MySQL, uncomment the following line
#image: mysql:8.0.27
network_mode: swag_default #add to swag network
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=somepassword #set pw
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=wordpress #set pw
expose:
- 3306
- 33060
wordpress:
container_name: wordpress
image: wordpress:latest
volumes:
- /tank/wp-content:/var/www/html/wp-content #set path to wp-content for configuration
network_mode: swag_default
ports:
- 8080:80
restart: unless-stopped
environment:
- WORDPRESS_DB_HOST=db
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=wordpress #set pw
- WORDPRESS_DB_NAME=wordpress
volumes:
db_data: