-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 1.01 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
services:
database:
image: mariadb
restart: always
container_name: pp_db
networks:
- backend
ports:
- "3306:3306"
command: --init-file /data/application/init.sql
volumes:
- ./init.sql:/data/application/init.sql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: puntportalen
MYSQL_USER: root
frontend:
build: ./server/client
volumes:
- ./server/client/:/app
- /app/node_modules
container_name: pp_client
networks:
- frontend
ports:
- "5173:5173"
backend:
build: ./server
volumes:
- ./server/:/app
- /app/node_modules
container_name: pp_server
networks:
- frontend
- backend
ports:
- "8082:2000"
networks:
frontend:
backend: