-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
100 lines (94 loc) · 2.06 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
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
# Copyright (c) BDist Development Team
# Distributed under the terms of the Modified BSD License.
volumes:
pg_data: {}
pgadmin_data: {}
redis_data: {}
services:
notebook:
restart: unless-stopped
image: ghcr.io/bdist/notebook:2024-12-03
volumes:
- ./data:/home/jovyan/data
- ./images:/home/jovyan/images
- ./work:/home/jovyan/work
environment:
- JUPYTER_PORT=9999
ports:
- 9999:9999
networks:
- bdist-workspace-network
redis:
restart: unless-stopped
image: redis:7.2
command:
- redis-server
- --appendonly
- "yes"
ports:
- 6379:6379
volumes:
- redis_data:/data
networks:
- bdist-workspace-network
postgres:
restart: unless-stopped
image: postgres:17
command:
- "postgres"
- "-c"
- "shared_buffers=1GB"
- "-c"
- "work_mem=8MB"
- "-c"
- "wal_compression=on"
- "-c"
- "max_wal_size=2GB"
- "-c"
- "checkpoint_timeout=15min"
- "-c"
- "shared_preload_libraries=pg_stat_statements"
shm_size: "256m"
volumes:
- pg_data:/var/lib/postgresql/data:Z
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
networks:
- bdist-workspace-network
pgadmin:
restart: unless-stopped
depends_on:
- postgres
image: dpage/pgadmin4:8
volumes:
- pgadmin_data:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: pgadmin
PGADMIN_LISTEN_PORT: 5050
ports:
- 5050:5050
networks:
- bdist-workspace-network
ngrok:
restart: no
image: ngrok/ngrok
command:
- "start"
- "--all"
- "--config"
- "/etc/ngrok.yml"
volumes:
- ./ngrok.yml:/etc/ngrok.yml
ports:
- 4040:4040
networks:
- bdist-workspace-network
networks:
bdist-workspace-network:
driver: bridge