Add docker-compose.yaml
This commit is contained in:
27
docker-compose.yaml
Normal file
27
docker-compose.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: postgres
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5432:5432"
|
||||
env_file:
|
||||
- .env
|
||||
command: [
|
||||
"postgres",
|
||||
"-c", "shared_preload_libraries=pg_stat_statements",
|
||||
"-c", "pg_stat_statements.track=all"
|
||||
]
|
||||
volumes:
|
||||
- /home/aetos/postgres/data:/var/lib/postgresql/data
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
container_name: pgadmin4
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8002:80"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- /home/aetos/pgadmin/data:/var/lib/pgadmin
|
||||
Reference in New Issue
Block a user