-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (57 loc) · 1.18 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
55
56
57
---
name: data-pulse
services:
db:
image: mariadb:11.6.2-noble
restart: unless-stopped
container_name: db
environment:
MARIADB_DATABASE: ${MARIADB_DATABASE}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_USER: ${MARIADB_USER}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_ALLOW_EMPTY_PASSWORD: no
ports:
- 3307:3306
volumes:
- db-data-pulse:/var/lib/mysql
networks:
- data-pulse
healthcheck:
test: ['CMD', 'healthcheck.sh', '--connect', '--innodb_initialized']
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
api:
build:
context: .
dockerfile: api.Dockerfile
container_name: api
depends_on:
db:
condition: service_healthy
restart: true
ports:
- 3001:3000
networks:
- data-pulse
client:
build:
context: .
dockerfile: client.Dockerfile
container_name: client
depends_on:
db:
condition: service_started
api:
condition: service_started
ports:
- 81:80
- 444:443
networks:
- data-pulse
networks:
data-pulse:
volumes:
db-data-pulse: