-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (55 loc) · 1.27 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
53
54
55
56
57
58
59
60
61
version: '3.1'
services:
app:
image: wordpress:latest
container_name: g2bc
restart: always
ports:
- 8001:80
volumes:
- ./wp_data:/var/www/html/
environment:
WORDPRESS_DB_HOST: 'mysql-wordpress'
WORDPRESS_DB_USER: '${WORDPRESS_DB_USER}'
WORDPRESS_DB_PASSWORD: '${WORDPRESS_DB_PASSWORD}'
WORDPRESS_DB_NAME: '${WORDPRESS_DB_NAME}'
depends_on:
- db
networks:
- internal
db:
container_name: mysql-wordpress
image: mariadb:10.6.4-focal
restart: always
volumes:
- ./db_data:/var/lib/mysql
- ./g2bcun_geral:/docker-entrypoint-initdb.d
ports:
- 3306
- 33060
environment:
MYSQL_DATABASE: '${MYSQL_DATABASE}'
MYSQL_USER: '${MYSQL_USER}'
MYSQL_PASSWORD: '${MYSQL_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'
command: '--default-authentication-plugin=mysql_native_password'
networks:
- internal
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- '3000:80'
environment:
PMA_HOST: 'mysql-wordpress'
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}'
depends_on:
- db
networks:
- internal
networks:
internal:
external: true
volumes:
wp_data:
db_data: