-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·46 lines (40 loc) · 1.13 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
version: "3.9"
services:
# ==== MySQL Database ====
db:
container_name: universome_db
image: mysql
# NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
# (this is just an example, not intended to be a production configuration)
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: WordPress2022
MYSQL_USER: dbadmin_wordpress
MYSQL_PASSWORD: WP2022
MYSQL_DATABASE: wordpress_db
volumes:
- universome_db:/var/lib/mysql
# ==== WordPress Website ====
website:
container_name: universome_website
build: .
volumes:
- ./wordpress:/srv/wordpress
# depends_on:
# - db
ports:
- "8000:80"
# ==== PhpMyAdmin ====
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '8080:80'
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: rootpass
volumes:
universome_db: