-
Notifications
You must be signed in to change notification settings - Fork 1
Run docker container
bit-to-bit edited this page Jul 27, 2023
·
1 revision
DOCKER CONFIGURATION:
Use application-production.properties for testing PostgreSQL DB. Create and run Docker container according to the instructions:
1.Create Docker compose container with file docker-compose: docker-compose up -d Run this command in the directory with the docker-compose.yml file of the following content:
version: "3.9" services: postgres: image: postgres:13.11-bullseye container_name: note-db-container environment: POSTGRES_DB: "notedb" POSTGRES_USER: "user" POSTGRES_PASSWORD: "12345" ports:
- "5432:5432"
2.Stop the container with database: docker stop note-db-container
3.Run the container with database: docker start note-db-container