-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
117 lines (112 loc) · 2.9 KB
/
docker-compose.yml
File metadata and controls
117 lines (112 loc) · 2.9 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
services:
redis:
image: "redis:7.0"
container_name: redis
ports:
- "127.0.0.1:6379:6379"
networks:
- superset-net
celery:
build:
context: ./injector
dockerfile: Dockerfile.celery
environment:
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
INJECTOR_HIGH_PRIORITY_WORKERS: ${INJECTOR_HIGH_PRIORITY_WORKERS}
INJECTOR_MEDIUM_PRIORITY_WORKERS: ${INJECTOR_MEDIUM_PRIORITY_WORKERS}
INJECTOR_LOW_PRIORITY_WORKERS: ${INJECTOR_LOW_PRIORITY_WORKERS}
INJECTOR_WORKER_CONCURRENCY: ${INJECTOR_WORKER_CONCURRENCY}
INJECTOR_DOWNLOAD_QUEUE_LIMIT: ${INJECTOR_DOWNLOAD_QUEUE_LIMIT}
depends_on:
- redis
- postgres
volumes:
- ./injector/:/app
- ./data:/data
networks:
- superset-net
postgres:
image: "postgres:16.3"
container_name: db
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
POSTGRES_DB: ${DB_NAME}
ports:
- "127.0.0.1:${DB_PORT}:${DB_PORT}"
volumes:
- pgdata:/var/lib/postgresql/data
command: -p ${DB_PORT}
networks:
- superset-net
superset:
build:
context: ./superset
dockerfile: Dockerfile
container_name: superset
ports:
- "127.0.0.1:${SUPERSET_PORT}:${SUPERSET_PORT}"
environment:
SUPERSET_CONFIG_PATH: /app/pythonpath/superset_config.py
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
SECRET_KEY: ${SECRET_KEY}
SUPERSET_ADMIN_USER: ${SUPERSET_ADMIN_USER}
SUPERSET_ADMIN_PASSWORD: ${SUPERSET_ADMIN_PASSWORD}
SUPERSET_ADMIN_EMAIL: ${SUPERSET_ADMIN_EMAIL}
SUPERSET_PORT: ${SUPERSET_PORT}
volumes:
- ./superset/superset_config.py:/app/pythonpath/superset_config.py
- ./superset/requirements.txt:/app/requirements.txt
- ./superset/wait_for_it.sh:/app/wait_for_it.sh
- ./superset/entry_point.sh:/app/entry_point.sh
- ./superset/branding:/app/branding/static/branding
depends_on:
- postgres
networks:
- superset-net
injector:
build:
context: ./injector
dockerfile: Dockerfile
container_name: injector
volumes:
- ./data:/data
- ./injector:/app
depends_on:
- postgres
- redis
- celery
networks:
- superset-net
environment:
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
command: ["python", "init_harvest.py"]
nginx:
image: nginx:1.27
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- superset
networks:
- superset-net
networks:
superset-net:
name: superset-net
volumes:
pgdata:
driver: local