diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..6401c86a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +version: "3.7" + +services: + db: + container_name: rcd_db + image: postgres:12-alpine + ports: + - 5432:5432 + volumes: + - postgres_data:/var/lib/postgresql/data/ + env_file: + - ./.env + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 5s + timeout: 5s + retries: 5 + +volumes: + postgres_data: