25 lines
668 B
YAML
25 lines
668 B
YAML
# This compose file should only be used in development.
|
|
# Caution: the ports of db and adminer are open without any application-side protection
|
|
services:
|
|
db:
|
|
image: postgres:18.3-alpine
|
|
ports: ["5432:5432"]
|
|
environment:
|
|
- POSTGRES_PASSWORD=postgres
|
|
volumes:
|
|
- ./db:/var/lib/postgresql
|
|
adminer:
|
|
image: adminer
|
|
ports: ["8080:8080"]
|
|
environment:
|
|
- ADMINER_SERVERS={
|
|
"dev db":{
|
|
"driver":"pgsql",
|
|
"server":"db",
|
|
"username":"postgres",
|
|
"password":"postgres",
|
|
"db":""
|
|
}
|
|
}
|
|
volumes:
|
|
- ./login-servers.php:/var/www/html/plugins-enabled/login-servers.php
|