-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
160 lines (149 loc) · 4.08 KB
/
docker-compose.yml
File metadata and controls
160 lines (149 loc) · 4.08 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
services:
# PostgreSQL Database
postgres:
image: postgres:15-alpine
container_name: postgres
env_file: .env
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_MULTIPLE_DATABASES: n8n,superset
volumes:
- postgres_data:/var/lib/postgresql/data
- ./postgres/init-multiple-databases.sh:/docker-entrypoint-initdb.d/init-multiple-databases.sh:ro
ports:
- "${POSTGRES_PORT}:5432"
networks:
- network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
# Redis
redis:
image: redis:7-alpine
container_name: redis
env_file: .env
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/data
ports:
- "${REDIS_PORT}:6379"
networks:
- network
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 3s
retries: 5
# n8n Workflow Automation
n8n:
image: n8nio/n8n:latest
container_name: n8n
env_file: .env
environment:
- DB_TYPE=${N8N_DB_TYPE}
- DB_POSTGRESDB_HOST=${POSTGRES_HOST}
- DB_POSTGRESDB_PORT=${POSTGRES_PORT}
- DB_POSTGRESDB_DATABASE=${N8N_DB_POSTGRESDB_DATABASE}
- DB_POSTGRESDB_USER=${POSTGRES_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_PASSWORD}
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=${N8N_BASIC_AUTH_USER}
- N8N_BASIC_AUTH_PASSWORD=${N8N_BASIC_AUTH_PASSWORD}
- WEBHOOK_URL=http://localhost:${N8N_PORT}
- GENERIC_TIMEZONE=UTC
- N8N_METRICS=true
ports:
- "${N8N_PORT}:5678"
volumes:
- n8n_data:/home/node/.n8n
networks:
- network
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Marimo for Python Notebooks
marimo:
build:
context: ./marimo
dockerfile: Dockerfile
container_name: marimo
env_file: .env
environment:
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- "${MARIMO_PORT}:8888"
volumes:
- marimo_data:/app/lab_root
- ./lab_root:/app/lab_root
networks:
- network
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
# Apache Superset
superset:
build:
context: ./superset
dockerfile: Dockerfile
container_name: superset
env_file: .env
environment:
- SUPERSET_CONFIG_PATH=/app/superset_config.py
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_DB=superset
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- REDIS_PASSWORD=${REDIS_PASSWORD}
- SUPERSET_SECRET_KEY=${SUPERSET_SECRET_KEY}
- SUPERSET_ADMIN_USERNAME=${SUPERSET_ADMIN_USERNAME}
- SUPERSET_ADMIN_PASSWORD=${SUPERSET_ADMIN_PASSWORD}
- SUPERSET_ADMIN_EMAIL=${SUPERSET_ADMIN_EMAIL}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_MAIL_FROM=${SMTP_MAIL_FROM}
ports:
- "${SUPERSET_PORT}:8088"
volumes:
- superset_data:/app/superset_home
- ./superset/superset_config.py:/app/superset_config.py:ro
networks:
- network
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
postgres_data:
driver: local
redis_data:
driver: local
n8n_data:
driver: local
marimo_data:
driver: local
superset_data:
driver: local
networks:
network:
driver: bridge