forked from LineaLabs/lineapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.18 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.9"
services:
lineapy:
image: ${IMAGE_NAME}
build: .
environment:
- LINEAPY_DATABASE_URL=${LINEAPY_DATABASE_URL}
volumes:
- ./lineapy:/usr/src/base/lineapy
- ./tests:/usr/src/base/tests
- ./pyproject.toml:/usr/src/base/pyproject.toml
- ./pytest.ini:/usr/src/base/pytest.ini
- ./docs:/usr/src/base/docs
networks:
- lineapy
postgres:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=postgres
ports:
- "5432:5432"
networks:
- lineapy
# wait_for_deps2:
# image: willwill/wait-for-it
# command: [ postgres:5432 ]
# networks:
# - lineapy
wait_for_deps:
image: dadarek/wait-for-dependencies
command: postgres:5432
networks:
- lineapy
lineapy-airflow:
image: ${IMAGE_NAME_AIRFLOW}
build:
args:
IMAGE_NAME: ${IMAGE_NAME}
context: .
dockerfile: Dockerfile-airflow
depends_on:
- lineapy
ports:
- 8080:8080
command: airflow standalone
networks:
- lineapy
networks:
lineapy:
driver: bridge
external: true