-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
77 lines (71 loc) · 1.24 KB
/
docker-compose.dev.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
app:
build:
context: .
dockerfile: ./Dockerfile.dev
command: npm run dev
volumes:
- .:/app
- /app/node_modules
env_file:
- .env
ports:
- 5173:5173
- 3000:3000
depends_on:
- db
networks:
- internal
db:
image: mariadb:10
tty: true
volumes:
- dbdata:/var/lib/mysql
env_file:
- .env
ports:
- 3306:3306
networks:
- internal
breeds:
build:
context: .
dockerfile: ./process-breeds/Dockerfile
command: sleep infinity
cap_add:
- SYS_ADMIN
volumes:
- .:/app
testapp:
build:
context: .
dockerfile: ./Dockerfile.dev
command: sleep infinity
volumes:
- .:/app
- /app/node_modules
env_file:
- .env.testing
depends_on:
testdb:
condition: service_healthy
networks:
- testing
testdb:
image: mariadb:10
tty: true
env_file:
- .env.testing
networks:
- testing
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
start_period: 10s
interval: 5s
timeout: 5s
retries: 4
volumes:
dbdata:
networks:
internal:
testing: