-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (39 loc) · 855 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (39 loc) · 855 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
version: '3.8'
services:
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
- ./frontend/dist:/usr/share/nginx/html
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
volumes:
- ./backend:/var/www/html
environment:
DB_HOST: db
DB_USERNAME: flow_order
DB_PASSWORD: your_password
DB_SCHEMA: flow_order
depends_on:
- db
db:
image: mysql:8
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: your_root_password
MYSQL_DATABASE: flow_order
MYSQL_USER: flow_order
MYSQL_PASSWORD: your_user_password
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data: