-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (63 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
66 lines (63 loc) · 1.33 KB
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
version: "3.7"
services:
mariadb:
container_name: mariadb
image: mariadb
restart: always
deploy:
resources:
limits:
cpus: '0.50'
memory: 250M
reservations:
cpus: '0.25'
memory: 128M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ports:
- 3306:3306
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${KARAVANIUM_DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${KARAVANIUM_DB_DATABASE}
MYSQL_USER: ${KARAVANIUM_DB_USER}
MYSQL_PASSWORD: ${KARAVANIUM_DB_PASSWORD}
networks:
- karavanium-net
nest:
container_name: nest
build:
context: .
target: development
command: npm run start:dev
volumes:
- .:/usr/src/app/
- /usr/src/app/node_modules
deploy:
resources:
limits:
cpus: '0.50'
memory: 250M
reservations:
cpus: '0.25'
memory: 128M
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
ports:
- ${KARAVANIUM_SERVER_PORT}:${KARAVANIUM_SERVER_PORT}
- 9229:9229
env_file:
- .env
networks:
- karavanium-net
depends_on:
- mariadb
networks:
karavanium-net: