forked from scorelab/Bassa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 924 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
version: "3"
services:
bassa-api:
build: components/core/
ports:
- 5000:5000
depends_on:
- db
environment:
BASSA_DB_NAME: ${BASSA_DB_NAME}
BASSA_DB_USERNAME: ${BASSA_DB_USERNAME}
BASSA_DB_PASSWORD: ${BASSA_DB_PASSWORD}
labels:
com.example.description: "Docker container for Bassa Backend"
web:
build: ui/
ports:
- 3000:80
depends_on:
- db
labels:
com.example.description: "Docker container for Bassa UI"
db:
image: mysql
restart: always
volumes:
- data-volume:/var/lib/mysql
- ./.docker/volumes/mysql:/docker-entrypoint-initdb.d
- ./db_schema/:/tmp/schema
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${BASSA_DB_NAME}
MYSQL_USER: ${BASSA_DB_USERNAME}
MYSQL_PASSWORD: ${BASSA_DB_PASSWORD}
volumes:
data-volume: