-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (45 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (45 loc) · 911 Bytes
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
version: '3.5'
services:
react:
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- 3000:3000
volumes:
- react:/app
wordpress:
build:
context: .
dockerfile: ./docker/Dockerfile-wp
restart: always
ports:
- 80:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: root
WORDPRESS_DB_NAME: wordpress
volumes:
- wordpress:/var/www/html
depends_on:
- db
db:
image: mysql:5.7
restart: always
ports:
- 8806:3306
environment:
MYSQL_DATABASE: 'wordpress'
MYSQL_USER: 'wordpress'
MYSQL_PASSWORD: 'wordpress'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ROOT_HOST: '%'
volumes:
- db:/var/lib/db
command: --default-authentication-plugin=mysql_native_password
volumes:
react:
wordpress:
db: