Skip to content

Commit

Permalink
new file: docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
o-200 committed Oct 20, 2023
1 parent 0c52148 commit cd50b42
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: "3.5"
services:
postgres:
image: postgres:16-alpine
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/data
- ./psql_history:/root/.psql_history
- ./.psqlrc:/root/.psqlrc:ro
healthcheck:
test: pg_isready -U postgres -h 127.0.0.1
interval: 5s

pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "5050:80"
healthcheck:
test: wget -O - http://localhost:80/misc/ping
depends_on:
- postgres

redis:
image: redis:6.2-alpine
ports:
- '6379:6379'
environment:
ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- redis:/data
healthcheck:
test: redis-cli ping
interval: 1s
timeout: 3s
retries: 30

volumes:
postgres:
pgadmin:
redis:

0 comments on commit cd50b42

Please sign in to comment.