-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 994 Bytes
/
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
services:
lifehub-mariadb:
image: mariadb:latest
container_name: lifehub-mariadb
environment:
MYSQL_ROOT_PASSWORD: ${MARIADB_PASSWORD}
MYSQL_DATABASE: ${MARIADB_DATABASE}
MYSQL_USER: ${MARIADB_USER}
MYSQL_PASSWORD: ${MARIADB_PASSWORD}
ports:
- "3306:3306"
volumes:
- dbdata:/var/lib/mysql
lifehub-backend:
build:
context: backend/
container_name: lifehub-backend
environment:
- DB_HOST=lifehub-mariadb
- DB_USER=${MARIADB_USER}
- DB_PASSWORD=${MARIADB_PASSWORD}
- DB_NAME=${MARIADB_DATABASE}
- FRONTEND_URL=http://lifehub-frontend
ports:
- "8000:8000"
depends_on:
- lifehub-mariadb
lifehub-frontend:
build:
context: frontend/
dockerfile: Dockerfile
container_name: lifehub-frontend
environment:
- BACKEND_URL=lifehub-backend
ports:
- "80:5173"
depends_on:
- lifehub-backend
volumes:
dbdata:
driver: local