-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.is-labs.yml
119 lines (113 loc) · 2.74 KB
/
docker-compose.is-labs.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# Copyright (c) BDist Development Team
# Distributed under the terms of the Modified BSD License.
volumes:
pg_data: {}
pg_run: {} # This volume is used to share the PostgreSQL socket
pgadmin_data: {}
redis_data: {}
services:
notebook:
restart: unless-stopped
image: ghcr.io/bdist/notebook:2024-09-09
user: "jovyan:users"
volumes:
- ./app:/home/jovyan/app
- ./images:/home/jovyan/images
- ./work:/home/jovyan/work
- ../is-labs/data:/home/jovyan/data
- ../is-labs/labs:/home/jovyan/labs
- ../is-labs/project:/home/jovyan/project
- type: "volume"
source: pg_run
target: /var/run/postgresql/
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:16
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/
- type: "volume"
source: pg_run
target: /var/run/postgresql/
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
- type: "volume"
source: pg_run
target: /var/run/postgresql/
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin@tecnico.pt
PGADMIN_DEFAULT_PASSWORD: pgadmin
PGADMIN_LISTEN_PORT: 5050
ports:
- 5050:5050
networks:
- bdist-workspace-network
app:
restart: unless-stopped
depends_on:
- postgres
build:
context: ../bankapp
dockerfile: Dockerfile.development
volumes:
- ../bankapp:/app
environment:
DATABASE_URL: postgres://bank:bank@postgres/bank
FLASK_APP: app
FLASK_ENV: development
FLASK_DEBUG: 1
FLASK_SECRET_KEY: 66342083928cc29310851e51d931ea35ebb4b5747bd2a33e0d06c3d6047c83c8
ports:
- 8080:8080
networks:
- bdist-workspace-network
networks:
bdist-workspace-network:
driver: bridge