35 lines
626 B
YAML
35 lines
626 B
YAML
services:
|
|
|
|
postgres:
|
|
image: postgres
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- pg_data:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_PASSWORD=test
|
|
|
|
pgadmin:
|
|
image: dpage/pgadmin4
|
|
ports:
|
|
- 8080:80
|
|
environment:
|
|
- PGADMIN_DEFAULT_EMAIL=postgres@postgres.com
|
|
- PGADMIN_DEFAULT_PASSWORD=postgres
|
|
- PGADMIN_DISABLE_POSTFIX=true
|
|
volumes:
|
|
- pgadmin_data:/var/lib/pgadmin
|
|
|
|
redis:
|
|
image: redis
|
|
ports:
|
|
- 6379:6379
|
|
volumes:
|
|
- redis_data:/data
|
|
command: "redis-server --save 60 1"
|
|
|
|
volumes:
|
|
pg_data:
|
|
pgadmin_data:
|
|
redis_data:
|