-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.09 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
# For more information: https://laravel.com/docs/sail
version: '3'
services:
mysql:
container_name: food-db
image: 'mysql:8.0.30'
expose:
- 3306
ports:
- 3306:3306
environment:
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
volumes:
- 'food-mysql:/var/lib/mysql'
api:
container_name: food-api
build:
context: node
expose:
- 3000
ports:
- 3000:3000
environment:
DB_DATABASE: '${DB_DATABASE}'
DB_USERNAME: '${DB_USERNAME}'
DB_PASSWORD: '${DB_PASSWORD}'
volumes:
- ./api:/project
command: "npm run start:dev"
app:
container_name: food-app
build:
context: node
ports:
- 4200:4200
volumes:
- ./app:/project
# command: "npm run watch"
# nginx:
# container_name: food-nginx
# image: nginx:latest
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# ports:
# - 80:80
# # - 4200:80
volumes:
food-mysql:
driver: local