diff --git a/db/docker-compose.yml b/db/docker-compose.yml new file mode 100644 index 0000000..a7fd124 --- /dev/null +++ b/db/docker-compose.yml @@ -0,0 +1,19 @@ +services: + + db: + image: postgres:16 + container_name: db + env_file: + - .env + ports: + - "${PGPORT}:${PGPORT}" + volumes: + - postgres-db:/var/lib/postgresql/data + environment: + - POSTGRES_USER=${PGUSER} + - POSTGRES_PASSWORD=${PGPASSWORD} + - POSTGRES_DB=${PGDATABASE} + restart: unless-stopped + +volumes: + postgres-db: \ No newline at end of file