import files
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
POSTGRES_DB=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_USER=postgres
|
||||
@@ -0,0 +1,5 @@
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:9.6-alpine
|
||||
@@ -0,0 +1,6 @@
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
ports:
|
||||
- 5433:5432
|
||||
@@ -0,0 +1,5 @@
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
@@ -0,0 +1,24 @@
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
command: -c logging_collector=on -c log_destination='stderr' -c log_directory='/shared/logs/postgres' -c log_filename='postgresql.log' -c log_file_mode='0644' -c log_rotation_age=0 -c log_checkpoints=on -c log_hostname=on -c log_line_prefix='%t [%p] [%l-1] db=%d,user=%u '
|
||||
depends_on:
|
||||
- shared-logs
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- shared:/shared
|
||||
shared-logs:
|
||||
command: sh -c 'mkdir -p /shared/logs/postgres && chown 70:70 /shared/logs/postgres'
|
||||
image: alpine:latest
|
||||
volumes:
|
||||
- shared:/shared
|
||||
|
||||
volumes:
|
||||
shared:
|
||||
driver: local
|
||||
driver_opts:
|
||||
type: none
|
||||
device: ${MONOREPO_DIR}/shared
|
||||
o: bind
|
||||
@@ -0,0 +1,25 @@
|
||||
version: '3.6'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
environment:
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
labels:
|
||||
- SERVICE_5432_NAME=${COMPOSE_SERVICE_NAME}-postgres-5432
|
||||
networks:
|
||||
- private
|
||||
ports:
|
||||
- 5432
|
||||
volumes:
|
||||
- postgres:/var/lib/postgresql/data
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
postgres:
|
||||
|
||||
networks:
|
||||
private:
|
||||
external: true
|
||||
name: ${DOCKER_NETWORK_PRIVATE}
|
||||
Reference in New Issue
Block a user