add docker-compose instructions

This commit is contained in:
welld1
2020-05-28 17:03:29 -04:00
parent 118ea1b5c2
commit 5fa5f5e5c1
2 changed files with 22 additions and 2 deletions

View File

@@ -1,5 +1,13 @@
# Postgres for Kube # Postgres for Kube
## Docker test
```bash
docker-compose up
```
Navigate to <http://pgadmin.local>
## Pre-deploy ## Pre-deploy
### Secrets ### Secrets

View File

@@ -11,14 +11,26 @@ services:
pgadmin: pgadmin:
image: dpage/pgadmin4:4 image: dpage/pgadmin4:4
ports: labels:
- 8090:80 - "traefik.http.routers.pgadmin.rule=Host(`pgadmin.localhost`)"
- "traefik.http.services.pgadmin-service.loadbalancer.server.port=80"
volumes: volumes:
- pgadmin:/var/lib/pgadmin - pgadmin:/var/lib/pgadmin
environment: environment:
PGADMIN_DEFAULT_EMAIL: postgres PGADMIN_DEFAULT_EMAIL: postgres
PGADMIN_DEFAULT_PASSWORD: postgres PGADMIN_DEFAULT_PASSWORD: postgres
traefik:
image: traefik:v2.2
labels:
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
- "traefik.http.services.traefik-service.loadbalancer.server.port=8080"
command: --api.insecure=true --providers.docker --log.level=ERROR --accesslog=true
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes: volumes:
data: data:
pgadmin: pgadmin: