Skip to content

Commit

Permalink
add database
Browse files Browse the repository at this point in the history
  • Loading branch information
staff0rd committed Mar 14, 2024
1 parent 447cb18 commit 5dd0e91
Show file tree
Hide file tree
Showing 12 changed files with 527 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -64,3 +64,6 @@ out/
.env.local

data/

# mikro orm appears to write json here
temp
2 changes: 1 addition & 1 deletion .vscode/launch.json
Expand Up @@ -9,7 +9,7 @@
"runtimeArgs": [
"start",
"--",
"start"
"status"
],
"env": {}
},
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Expand Up @@ -17,6 +17,9 @@ services:
INFLUX_TOKEN: '${INFLUX_TOKEN}'
INFLUX_ORG: my-org
INFLUX_BUCKET: my-bucket
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'
ports:
- 3000:3000
command: npm start -- start
Expand Down Expand Up @@ -74,6 +77,24 @@ services:
ports:
- 5341:80
image: datalust/seq
postgres:
image: postgres:15
ports:
- '5432:5432'
restart: unless-stopped
volumes:
- $PWD/data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: '${POSTGRES_USER}'
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
POSTGRES_DB: '${POSTGRES_DB}'

adminer:
image: adminer
restart: unless-stopped
ports:
- '8080:8080'

volumes:
grafana_storage: {}
redis_storage: {}

0 comments on commit 5dd0e91

Please sign in to comment.