-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 loc) · 1.3 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
62
63
64
65
services:
wordpress:
build: .
container_name: wp642
depends_on:
- mysql
volumes:
- wordpress_data:/var/www/html
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
networks:
- wordpress-network
nginx:
image: nginx:latest
container_name: nginx1253
ports:
- "80:80"
volumes:
- wordpress_data:/var/www/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- wordpress
networks:
- wordpress-network
mysql:
image: mysql:5.7
container_name: mysql57
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
networks:
- wordpress-network
phpmyadmin:
depends_on:
- mysql
image: phpmyadmin:5.2.1
container_name: phpmyadmin521
restart: always
ports:
- "8090:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
networks:
- wordpress-network
volumes:
wordpress_data:
mysql_data:
networks:
wordpress-network:
driver: bridge