mirror of
https://github.com/atareao/self-hosted.git
synced 2024-07-02 03:55:41 +02:00
36 lines
562 B
YAML
36 lines
562 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
container_name: postgres
|
|
image: postgres:latest
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
logging:
|
|
driver: journald
|
|
networks:
|
|
- internal
|
|
|
|
pgadmin:
|
|
container_name: pgadmin4
|
|
image: dpage/pgadmin4
|
|
restart: always
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- pgadmin:/var/lib/pgadmin
|
|
logging:
|
|
driver: journald
|
|
networks:
|
|
- internal
|
|
|
|
volumes:
|
|
postgres_data: {}
|
|
pgadmin: {}
|
|
|
|
networks:
|
|
internal:
|