feat(compose): Add docker-compose file
This commit is contained in:
58
docker-compose.yaml
Normal file
58
docker-compose.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
networks:
|
||||
proxy:
|
||||
name: pgproxy
|
||||
external: true
|
||||
|
||||
services:
|
||||
pgproxy:
|
||||
image: git.secnex.io/secnex/pgproxy:latest
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
- CONFIG_PATH=/app/config.yaml
|
||||
volumes:
|
||||
- ./config.yaml:/app/config.yaml
|
||||
depends_on:
|
||||
- psql-001
|
||||
- psql-002
|
||||
- psql-003
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
psql-001:
|
||||
image: postgres:latest
|
||||
volumes:
|
||||
- psql-data-001:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=postgres
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
psql-002:
|
||||
image: postgres:latest
|
||||
volumes:
|
||||
- psql-data-002:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=postgres
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
psql-003:
|
||||
image: postgres:latest
|
||||
volumes:
|
||||
- psql-data-003:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=postgres
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
volumes:
|
||||
psql-data-001:
|
||||
psql-data-002:
|
||||
psql-data-003:
|
||||
Reference in New Issue
Block a user