Repository navigation
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
71 lines (67 loc) · 2.05 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
71 lines (67 loc) · 2.05 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
services:
# =========================================
# Frontend Development Overrides
# =========================================
frontend:
build:
context: ./frontend-bpm
dockerfile: Dockerfile.dev
volumes:
# Sync local source code to container for Hot Reload
- ./frontend-bpm:/app
# Anonymous volume: Prevents local empty folder from overwriting container's node_modules
- /app/node_modules
networks:
- bpm-network
# =========================================
# Backend Development Overrides
# =========================================
backend:
# entrypoint: []
# "--debug" enables the interactive debugger and auto-reloader
command: flask run --host=0.0.0.0 --port=4000 --debug
volumes:
# Sync local python files to container for auto-reload
- ./backend-bpm:/api
environment:
- FLASK_APP=flaskr
- FLASK_DEBUG=1
- DB_URL=postgresql+psycopg://postgres:postgres@db:5432/postgres
- SEED_DB=true
networks:
- bpm-network
# =========================================
# Database Access (Expose Port)
# =========================================
db:
ports:
# Expose 5432 locally so you can connect via DBeaver/TablePlus
- "5432:5432"
networks:
- bpm-network
# =========================================
# pgAdmin Tool
# =========================================
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_dev
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
# Disable the extra security prompt for dev convenience
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
ports:
- "15432:80"
volumes:
# PERSISTENCE: This ensures your server configs aren't lost on restart
- pgadmin-data-dev:/var/lib/pgadmin
depends_on:
db:
condition: service_started
networks:
- bpm-network
# =========================================
# Volumes
# =========================================
volumes:
pgadmin-data-dev: {}