h
Size: a a a
h
h
А
docker run -d --network=bridge --name postgresdb -v "$PWD"/src/main/resources/static/db:/opt/myscript -v /home/repository/postgresdata:/var/lib/postgresql/data -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user postgres:10-alpine
docker exec -it postgresdb psql -U user -f /opt/myscript/init.sql
postgresdb:
container_name: postgresdb
image: postgres:10-alpine
restart: "no"
volumes:
- ./src/main/resources/static/db:/opt/myscript
- /home/repository/postgresdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=user
command: psql -U user -f /opt/myscript/init.sql
GG
docker run -d --network=bridge --name postgresdb -v "$PWD"/src/main/resources/static/db:/opt/myscript -v /home/repository/postgresdata:/var/lib/postgresql/data -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user postgres:10-alpine
docker exec -it postgresdb psql -U user -f /opt/myscript/init.sql
postgresdb:
container_name: postgresdb
image: postgres:10-alpine
restart: "no"
volumes:
- ./src/main/resources/static/db:/opt/myscript
- /home/repository/postgresdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=user
command: psql -U user -f /opt/myscript/init.sql
А
GG
GG
GG
А
GG
GG
А
GG
GG
AM
А
GG
GG
AM