-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 824 Bytes
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
# for development purposes
services:
mariadb:
image: mariadb:10.5
volumes:
- mysql_data:/var/lib/mysql
command: >-
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=argus
- MYSQL_ALLOW_EMPTY_PASSWORD=true
backend:
image: node:25
env_file: .env
volumes:
- .:/opt/app:delegated
working_dir: /opt/app
command: npm run dev -w backend
ports:
- 4000:4000
depends_on:
- mariadb
frontend:
image: node:25
volumes:
- .:/opt/app:delegated
working_dir: /opt/app
command: npm run start -w frontend
ports:
- 3000:3000
depends_on:
- backend
environment:
- BACKEND_URL=http://backend:4000
volumes:
mysql_data: