-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (45 loc) · 1.07 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
version: '3.8'
services:
backend:
build:
dockerfile: Dockerfile
context: ./backend
image: node-react-blog:1.0
environment:
- DEBUG=react-node-blog:server
ports:
- "8000:3000"
container_name: node-react-blog-backend
volumes:
- ./backend:/app
client :
build:
dockerfile: Dockerfile
context: ./client
image: node-react-blog-frontend:1.0
environment:
- CHOKIDAR_USEPOLLING=true
- PORT=4000
- NODE_OPTIONS=--openssl-legacy-provider
ports:
- "4001:4000"
container_name: node-react-blog-client
volumes:
- ./client/src:/app-client/src
mysql_db_container:
image: mysql:latest
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: rootpassword
ports:
- 3306:3306
volumes:
- mysql_db_data_container:/var/lib/mysql
adminer_container:
image: adminer:latest
environment:
ADMINER_DEFAULT_SERVER: mysql_db_container
ports:
- 8080:8080
volumes:
mysql_db_data_container: