-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
42 lines (36 loc) · 955 Bytes
/
docker-compose.override.yml
File metadata and controls
42 lines (36 loc) · 955 Bytes
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
# Development-only overrides: adds port mappings and PGAdmin UI
services:
db:
ports:
- "${POSTGRES_PORT:-5432}:5432"
redis:
ports:
- "${REDIS_PORT:-6379}:6379"
mongodb:
ports:
- "${MONGO_PORT:-27017}:27017"
backend:
ports:
- "${BACKEND_PORT:-8000}:8000"
frontend:
ports:
- "80:80"
pgadmin:
image: dpage/pgadmin4:8
container_name: snippetly-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@local.test}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
depends_on:
db:
condition: service_healthy
ports:
# Bind to localhost only for security (access via SSH tunnel)
- "127.0.0.1:${PGADMIN_PORT:-9090}:80"
volumes:
- pgadmin:/var/lib/pgadmin
restart: unless-stopped
volumes:
pgadmin: