diff --git a/compose-dev.yaml b/compose-dev.yaml index 3ce1712..19e3718 100644 --- a/compose-dev.yaml +++ b/compose-dev.yaml @@ -1,5 +1,5 @@ -version: '3.1' -name: app-01-DevEnvironments +version: '3.8' +name: app-01-dev services: app: entrypoint: diff --git a/docker-compose2.yml b/docker-compose2.yml index 9e1592a..9f29f0e 100644 --- a/docker-compose2.yml +++ b/docker-compose2.yml @@ -1,5 +1,5 @@ -version: '3.1' - +version: '3.8' +name: demo01-dev services: db: image: mysql:latest @@ -14,6 +14,25 @@ services: volumes: - d:/docker-data/mysql:/var/lib/mysql + postgres: + image: postgres + container_name: postgre-01 + ports: + - "5432:5432" + restart: always + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: "11111111" + POSTGRES_DB: y9_public + PGDATA: "/var/lib/postgresql/data/pgdata" + volumes: + - d:/docker-data/postgres:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres -d y9_public"] + interval: 10s + timeout: 5s + retries: 3 + redis: image: redis:latest container_name: redis01 diff --git a/pom.xml b/pom.xml index 4a4b44d..583cdc2 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.1.1 + 3.1.3 net.risesoft