-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (44 loc) · 999 Bytes
/
docker-compose.yaml
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
services:
api:
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- "8000:8000"
- "8888:8888"
stdin_open: true # docker run -i
tty: true # docker run -t
volumes:
- type: bind
source: .
target: /autofl
db:
image: postgres
restart: always
environment:
POSTGRES_DB: "auto_fl"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "temp"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
interval: 1s
timeout: 5s
retries: 10
ports:
- "5432:5432"
volumes:
- ../auto_fl_db:/var/lib/postgresql/data
- ./docker/sql:/docker-entrypoint-initdb.d/
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
ui:
image: cezarsas/autofl-ui:latest
ports:
- "8501:8501"
stdin_open: true # docker run -i
tty: true # docker run -t
links:
- 'api:auto-fl'