You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Postgres-service start
|
|
|
|
|
|
|
|
ARG VERSION=latest
|
|
|
|
# Образ контейнера
|
|
|
|
FROM postgres:${VERSION}
|
|
|
|
|
|
|
|
# Сведения о контейнере
|
|
|
|
LABEL author="esoe"
|
|
|
|
LABEL description="postgres image for tech-services"
|
|
|
|
LABEL version="1.0"
|
|
|
|
|
|
|
|
# Переменные среды контейнера
|
|
|
|
# ENV PG_CONTAINER_NAME='postgres-service'
|
|
|
|
# ENV POSTGRES_USER='tech-services'
|
|
|
|
# ENV POSTGRES_PASSWORD='password'
|
|
|
|
# ENV POSTGRES_DB='tech-services'
|
|
|
|
# ENV PGDATA='/data/tech-services'
|
|
|
|
|
|
|
|
# COPY *.sql /docker-entrypoint-initdb.d/
|
|
|
|
|
|
|
|
# Сборка контейнера
|
|
|
|
# docker build
|
|
|
|
|
|
|
|
# Запуск контейнера
|
|
|
|
# docker run
|