-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 913 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
version: '3.9'
services:
client:
container_name: cashforce_client
build: ./client
ports:
- 5173:5173
restart: always
env_file:
- ./client/.env
depends_on:
server:
condition: service_healthy
server:
container_name: cashforce_api
build:
context: ./server
dockerfile: Dockerfile.dev
ports:
- 3001:3001
restart: always
env_file:
- ./server/.env
environment:
- DB_HOST=db
depends_on:
db:
condition: service_healthy
healthcheck:
test: [ "CMD", "lsof", "-t", "-i:3001" ]
timeout: 10s
retries: 5
db:
image: mysql:8.0
container_name: cashforce_db
ports:
- 3306:3306
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1234
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 10s
retries: 5