diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d78c3ae --- /dev/null +++ b/.env.example @@ -0,0 +1,3 @@ +DB_NAME= +DB_USER= +DB_PASSWORD= \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0481b84..ddf4317 100644 --- a/.gitignore +++ b/.gitignore @@ -33,8 +33,8 @@ test/ node_modules - - # Added by cargo - /target + +# .env +.env \ No newline at end of file diff --git a/dev-compose.yml b/dev-compose.yml new file mode 100644 index 0000000..575989e --- /dev/null +++ b/dev-compose.yml @@ -0,0 +1,27 @@ +services: + db: + image: postgres:latest + container_name: database + restart: unless-stopped + env_file: + - .env + volumes: + - postgres_data:/var/lib/postgresql/data + ports: + - "5432:5432" + environment: + POSTGRES_DB: ${DB_NAME} + POSTGRES_USER: ${DB_USER} + POSTGRES_PASSWORD: ${DB_PASSWORD} + + redis: + image: redis:latest + restart: unless-stopped + ports: + - '6379:6379' + volumes: + - redis:/data + +volumes: + postgres_data: + redis: