Skip to content

Commit

Permalink
Avoid db to use a volume
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmarcou committed Sep 12, 2024
1 parent bb27c9c commit 25e01e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
web:
container_name: web
profiles: [ "all", "web" ]
profiles: ["all", "web"]
build:
context: ./web
dockerfile: Dockerfile
Expand All @@ -14,7 +14,7 @@ services:
- 3000:3000
server:
container_name: server
profiles: [ "all", "server-db", "server" ]
profiles: ["all", "server-db", "server"]
image: ocv-server
build:
context: ./server
Expand All @@ -30,11 +30,13 @@ services:
- db
db:
container_name: postgres
profiles: [ "all", "server-db", "db" ]
profiles: ["all", "server-db", "db"]
image: postgres:15.2
ports:
- 5432:5432
environment:
POSTGRES_USER: granola
POSTGRES_PASSWORD: systems
POSTGRES_DB: db
tmpfs:
- /var/lib/postgresql/data

0 comments on commit 25e01e7

Please sign in to comment.