-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
130 lines (117 loc) · 3.16 KB
/
docker-compose.yaml
File metadata and controls
130 lines (117 loc) · 3.16 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
---
version: '3'
services:
# Jupyter Lab
jupyter:
image: cmihai/jupyter:v1
container_name: 'datascience_jupyter'
hostname: jupyter
restart: 'always'
build: services/jupyter
env_file:
- ./config/jupyter.env
labels:
- traefik.backend=jupyter
- traefik.frontend.rule=Host:jupyter.docker.localhost
- traefik.port=8888
depends_on:
- traefik
- postgres
links:
- postgres
########################################################################
## Data
########################################################################
# Postgres - SQL Database
postgres:
image: postgres:12-alpine
container_name: 'datascience_postgres'
restart: 'always'
env_file:
- ./config/postgres.env
volumes:
- postgres_data:/var/lib/postgresql/data
- ./data/init.sql:/docker-entrypoint-initdb.d/init.sql
########################################################################
## Visualization
########################################################################
# Superset
superset:
image: tylerfowler/superset:0.28
container_name: 'datascience_superset'
restart: 'always'
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:superset.docker.localhost
- traefik.port=9000
depends_on:
- postgres
env_file:
- ./config/superset.env
# Grafana
grafana:
image: grafana/grafana
container_name: 'datascience_grafana'
restart: 'always'
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:grafana.docker.localhost
- traefik.port=3000
depends_on:
- postgres
env_file:
- ./config/grafana.env
########################################################################
## Management tooling
########################################################################
# PGAdmin4 - Manage PostreSQL
pgadmin:
image: dpage/pgadmin4
container_name: 'datascience_pgadmin'
restart: 'always'
depends_on:
- postgres
env_file:
- ./config/pgadmin.env
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:pgadmin.docker.localhost
- traefik.port=80
ports:
- 8080:80
links:
- postgres
# Portainer - Manage Containers
portainer:
image: portainer/portainer
container_name: 'datascience_portainer'
restart: 'always'
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:portainer.docker.localhost
- traefik.port=9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_volume:/data
command: -H unix:///var/run/docker.sock
# Traefik - Authentication, SSL, Proxy and Load Balancer
traefik:
image: traefik:v2.0-alpine
hostname: traefik
container_name: 'datascience_traefik'
command: --api --docker
restart: 'always'
ports:
- '80:80'
- '443:443'
- '8080:8080'
volumes:
- ./config/traefik.toml:/etc/traefik/traefik.toml
- /var/run/docker.sock:/var/run/docker.sock
############################
## Volumes
############################
volumes:
postgres_data:
portainer_volume:
minio_volume: