Add basic postgres db config

This commit is contained in:
2023-01-13 23:25:41 -07:00
parent 1864cd2bee
commit ddf9fda092
6 changed files with 161 additions and 1 deletions
+12 -1
View File
@@ -6,13 +6,24 @@ services:
dockerfile: docker/Dockerfile.dev
ports:
- "0.0.0.0:45420:45420"
networks:
- cursorius
volumes:
- "..:/build/server"
- "../server.toml:/root/.config/cursorius/server.toml"
- "/var/run/docker.sock:/var/run/docker.sock"
- "../_working/go:/go"
- "../_working/jobs:/cursorius/jobs"
cursorius-db:
image: postgres:14
environment:
- POSTGRES_USER=cursorius
- POSTGRES_PASSWORD=cursorius
- POSTGRES_DB=cursorius
networks:
- cursorius
volumes:
- "../_working/postgres:/var/lib/postgresql/data"
networks:
cursorius:
external: true