-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (54 loc) · 1.21 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
54
services:
db:
image: mariadb:lts
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "3999:3306"
volumes:
- ./dbdata:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: webapp
MYSQL_DATABASE: webapp
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 3s
interval: 3s
timeout: 5s
retries: 30
npm:
build:
context: .
dockerfile: npm.Dockerfile
volumes:
- type: bind
source: ./template
target: /app
app:
build:
context: .
dockerfile: dev.Dockerfile
ports:
- "8090:8090"
volumes:
- type: bind
source: ./pb_data
target: /app/pb_data
- type: bind
source: ./web
target: /app/web
- type: bind
source: ./server
target: /app/server
- type: bind
source: ./internal
target: /app/internal
- type: bind
source: ./migrations
target: /app/migrations
restart: unless-stopped
depends_on:
db:
condition: service_healthy
npm:
condition: service_completed_successfully