-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
48 lines (48 loc) · 903 Bytes
/
compose.yaml
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
services:
db:
image: mysql:8.0
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: dev
volumes:
- mysql-data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:5.2
ports:
- 8080:80
depends_on:
- db
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: test
api:
build:
context: ./api
target: dev
volumes:
- ./api:/usr/src/app
ports:
- 3030:3030
environment:
MYSQL_HOST: db
MYSQL_USER: root
MYSQL_PASSWORD: test
MYSQL_DB: dev
client:
build:
context: ./client
target: dev-watch
ports:
- 3000:3000
x-develop:
watch:
- path: ./client/package-lock.json
action: rebuild
- path: ./client/src
action: sync
target: /usr/src/app/src
volumes:
mysql-data: