-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yaml
98 lines (94 loc) · 2.69 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3.9'
services:
db:
image: postgres:latest
container_name: db
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/data/
volumes:
- postgresql_db_data:/var/lib/postgresql/data/
expose:
- 5432
ports:
- 5433:5432
db_editor:
image: adminer
container_name: db_editor
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
expose:
- 8080
ports:
- 8081:8080
depends_on:
- db
lakehouse_share_backend_app:
container_name: lakehouse_share_backend
restart: always
build:
dockerfile: Dockerfile
context: ./backend/
# command: >
# sh -c "python manage.py wait_for_db &&
# python manage.py migrate &&
# python manage.py runserver 0.0.0.0:8000"
environment:
- env=${env:-PROD}
- TABLE_FORMAT=${TABLE_FORMAT:-delta}
- PYICEBERG_CATALOG__DEFAULT__TYPE=glue
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- SECRET_KEY=${SECRET_KEY}
- ALGORITHM=${ALGORITHM}
- ACCESS_TOKEN_EXPIRE_MINUTES=${ACCESS_TOKEN_EXPIRE_MINUTES}
volumes:
- ./backend/:/usr/backend/
expose:
- 8000
ports:
- 8001:8000
depends_on:
- db
lakehouse_share_frontend_app:
container_name: lakehouse_share_frontend
restart: always
build:
dockerfile: Dockerfile
context: ./frontend/
# command: >
# sh -c "python manage.py wait_for_db &&
# python manage.py migrate &&
# python manage.py runserver 0.0.0.0:8000"
environment:
- env=${env:-PROD}
- BACKEND_HOST=lakehouse_share_backend_app
- BACKEND_PORT=8000
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
volumes:
- ./frontend/:/usr/frontend/
expose:
- 8501
ports:
- 8501:8501
depends_on:
- db
- lakehouse_share_backend_app
volumes:
postgresql_db_data: