version: "3"
services:
server:
container_name: server
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/keykloack
build: ./
command: java -jar ./Madela_Zadanie-0.0.1-SNAPSHOT.jar
ports:
- 8080:8080
depends_on:
- postgres
postgres:
image: postgres:13.3
container_name: postgres
restart: always
environment:
POSTGRES_DB: "keykloack"
POSTGRES_USER: "user1"
POSTGRES_PASSWORD: "1234"
PGDATA: "/home/dmitriy/IdeaProjects/Madela_Zadanie/target/pgdata"
volumes:
- .:/docker-entrypoint-initdb.d
- .:/home/dmitriy/IdeaProjects/Madela_Zadanie/target
ports:
- 5432:5432
чтобы сохранились все отступы, курсив, жирный шрифт и прочее
Такое реально?