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
## Docker test
```bash
docker-compose up
```
Navigate to <http://pgadmin.local>
## Pre-deploy
### Secrets

View File

@@ -11,13 +11,25 @@ services:
pgadmin:
image: dpage/pgadmin4:4
ports:
- 8090:80
labels:
- "traefik.http.routers.pgadmin.rule=Host(`pgadmin.localhost`)"
- "traefik.http.services.pgadmin-service.loadbalancer.server.port=80"
volumes:
- pgadmin:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: 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:
data: