-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
50 lines (46 loc) · 886 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
45
46
47
48
49
50
version: "3.9"
services:
db:
image: mysql:5.7
#network_mode: host
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: SecretPassword
slo-be:
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
image: slo-be:latest
#network_mode: host
ports:
- "8080:8080"
links:
- db
restart: always
environment:
DB_HOST: db
slo-fe:
depends_on:
- slo-be
build:
context: ui/
dockerfile: Dockerfile
image: slo-fe:latest
ports:
- "3000:80"
links:
- slo-be
restart: always
environment:
API_URL: slo-be
# Please update username and password if you don't want to use the defaults.
USERNAME: admin
PASSWORD: admin
volumes:
db_data: {}