add docker-compose instructions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
Reference in New Issue
Block a user