-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1001 Bytes
/
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
version: '3'
services:
fronted:
image: mastermind8/time-application-front-dev #build: ./frontend
restart: always
ports:
- '3000:3000'
volumes:
- /app/node_modules
- ./frontend:/app
api:
image: mastermind8/time-application-api-dev #build: ./api
restart: always
ports:
- '5555:5000'
depends_on:
mysql:
condition: service_healthy
volumes:
- /app/node_modules
- ./api:/app
environment:
MYSQL_HOST: mysql
MYSQL_USER: root
MYSQL_PORT: '3306'
MYSQL_PASSWORD: password
MYSQL_DB: time_db
mysql:
image: mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: time_db
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 20s
retries: 10
volumes:
- mysql_data:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- '8888:8080'
volumes:
mysql_data: