-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose..app.yml
More file actions
131 lines (124 loc) · 3.1 KB
/
Copy pathdocker-compose..app.yml
File metadata and controls
131 lines (124 loc) · 3.1 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
# 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: quay.io/bdist/notebook:latest
init: true
volumes:
- ../app:/home/jovyan/app
- ./data:/home/jovyan/data
- ./images:/home/jovyan/images
- ./work:/home/jovyan/work
environment:
- JUPYTER_PORT=${JUPYTER_PORT:-9999}
ports:
- "${JUPYTER_PORT:-9999}:${JUPYTER_PORT:-9999}"
networks:
- bdist-workspace-network
redis:
restart: unless-stopped
image: redis:8
command:
- redis-server
- --appendonly
- "yes"
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- bdist-workspace-network
postgres:
restart: unless-stopped
image: postgres:18
command:
- "postgres"
- "-c"
- "config_file=/etc/postgresql/postgresql.conf"
shm_size: "256m"
stop_grace_period: 30s
volumes:
- pg_data:/var/lib/postgresql:Z
- ./postgresql.conf:/etc/postgresql/postgresql.conf:ro
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test:
[
"CMD-SHELL",
'pg_isready -h 127.0.0.1 -U "$$POSTGRES_USER" -d "$$POSTGRES_DB" || exit 1',
]
interval: 10s
timeout: 5s
retries: 10
start_period: 20s
networks:
- bdist-workspace-network
pgadmin:
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
image: dpage/pgadmin4:9
volumes:
- pgadmin_data:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin@tecnico.pt}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-pgadmin}
PGADMIN_LISTEN_PORT: 5050
ports:
- "${PGADMIN_PORT:-5050}:5050"
networks:
- bdist-workspace-network
app:
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
build:
context: ../app
dockerfile: Dockerfile.development
volumes:
- ../app:/app
environment:
FLASK_APP: app
FLASK_ENV: development
FLASK_DEBUG: 1
FLASK_SECRET_KEY: ${FLASK_SECRET_KEY:-66342083928cc29310851e51d931ea35ebb4b5747bd2a33e0d06c3d6047c83c8}
ports:
- "${APP_PORT:-8080}:8080"
networks:
- bdist-workspace-network
ngrok:
restart: no
image: ngrok/ngrok
command:
- "start"
- "--all"
- "--config"
- "/etc/ngrok.yml"
volumes:
- ./ngrok.yml:/etc/ngrok.yml
ports:
- "${NGROK_PORT:-4040}:4040"
networks:
- bdist-workspace-network
networks:
bdist-workspace-network:
driver: bridge