Adding common Postgres stack.
This commit is contained in:
parent
aa7ad2ed64
commit
5816baea13
2
postgres-common/.env.dist
Normal file
2
postgres-common/.env.dist
Normal file
|
@ -0,0 +1,2 @@
|
|||
POSTGRES_PASSWORD=password
|
||||
COMMON_DATABASE_NETWORK=database-net
|
23
postgres-common/docker-compose.yml
Normal file
23
postgres-common/docker-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
postgres-common:
|
||||
image: postgres:12-alpine
|
||||
container_name: postgres-common
|
||||
env_file: .env
|
||||
networks:
|
||||
- db-network
|
||||
ports:
|
||||
- "127.0.0.1:5432:5432/tcp"
|
||||
volumes:
|
||||
# Database files
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
|
||||
networks:
|
||||
db-network:
|
||||
name: "${COMMON_DATABASE_NETWORK:-database-network}"
|
||||
external: true
|
Loading…
Reference in a new issue