redo postgres docker instance

This commit is contained in:
sigonasr2, Sig, Sigo 2021-07-27 05:10:09 +00:00
parent bdff5140f3
commit e3022f9af8

View File

@ -56,6 +56,7 @@ services:
- "4502:5432" - "4502:5432"
volumes: volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql - ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./init2.sql:/docker-entrypoint-initdb.d/init2.sql
- ./postgres-data:/var/lib/postgresql/data - ./postgres-data:/var/lib/postgresql/data
environment: environment:
POSTGRES_USER: postgres POSTGRES_USER: postgres
@ -65,21 +66,6 @@ services:
max-size: "1m" max-size: "1m"
max-file: "3" max-file: "3"
postgres-test:
image: postgres:10.4
restart: always
ports:
- "4505:5432"
volumes:
- ./init2.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: postgres
POSTGRES_DB: ngsplanner2
logging:
options:
max-size: "1m"
max-file: "3"
frontend: frontend:
build: build:
context: frontend context: frontend