-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.41 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
version: '3.9'
services:
db:
image: mysql:8.0
container_name: "db"
volumes:
- db_data:/var/lib/mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD: somewordpress # Change this if you want.
MYSQL_PASSWORD: wordpress # Change this if you want.
MYSQL_USER: wordpress # Change this if you want.
# Remove this service if you're using a different database management tool.
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 500M # Change this if your database export is larger.
restart: always
ports:
- 8080:80
wordpress:
depends_on:
- db
image: wordpress:latest # Either use the latest version, or the version of your live site.
container_name: "wordpress"
ports:
- "443:443"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
working_dir: /var/www/html
volumes:
- ./Wordpress/wp-content:/var/www/html/wp-content
- ./Wordpress/wp-config.php:/var/www/html/wp-config.php
- ./certs:/etc/ssl/certs:ro
- ./default-ssl.conf:/etc/apache2/sites-available/default-ssl.conf
- ./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh:ro
volumes:
db_data: