Simplify compose file for Portainer compatibility
This commit is contained in:
parent
28a884d08a
commit
b19b302720
@ -1,7 +1,6 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16
|
||||
container_name: postgres_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
@ -12,12 +11,9 @@ services:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
networks:
|
||||
- postgres_network
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
container_name: pgadmin
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@example.com
|
||||
@ -26,15 +22,9 @@ services:
|
||||
- pgadmin_data:/var/lib/pgadmin
|
||||
ports:
|
||||
- "8080:80"
|
||||
networks:
|
||||
- postgres_network
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
pgadmin_data:
|
||||
|
||||
networks:
|
||||
postgres_network:
|
||||
driver: bridge
|
||||
|
Loading…
Reference in New Issue
Block a user