Skip to content

Commit

Permalink
zess: make some fixes for faster backend compiles in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-dev committed Oct 10, 2024
1 parent 83da589 commit 21b1d89
Showing 1 changed file with 43 additions and 39 deletions.
82 changes: 43 additions & 39 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
services:
zess-db:
image: postgres:alpine3.20
environment:
- POSTGRES_PASSWORD=zess
- POSTGRES_USER=postgres
- POSTGRES_DB=zess
volumes:
- db-data:/var/lib/postgresql/data
ports:
- 5432:5432
extra_hosts:
- "host.docker.internal:host-gateway"
zess-db:
image: postgres:alpine3.20
environment:
- POSTGRES_PASSWORD=zess
- POSTGRES_USER=postgres
- POSTGRES_DB=zess
volumes:
- db-data:/var/lib/postgresql/data
ports:
- 5432:5432
extra_hosts:
- "host.docker.internal:host-gateway"

zess-backend:
env_file: "vingo/.env"
build:
context: vingo
dockerfile: Dockerfile.dev
ports:
- 4000:4000
volumes:
- ./vingo:/backend
extra_hosts:
- "host.docker.internal:host-gateway"
stop_grace_period: 1s
depends_on:
- zess-db
zess-backend:
env_file: "vingo/.env"
environment:
- CARGO_BUILD_TARGET_DIR=/target
build:
context: vingo
dockerfile: Dockerfile.dev
ports:
- 4000:4000
volumes:
- ./vingo:/backend
- backend-compile:/target
extra_hosts:
- "host.docker.internal:host-gateway"
stop_grace_period: 1s
depends_on:
- zess-db

zess-frontend:
build:
context: vinvoor
dockerfile: Dockerfile.dev
user: ${CURRENT_UID}
ports:
- 5173:5173
volumes:
- ./vinvoor:/frontend
extra_hosts:
- "host.docker.internal:host-gateway"
zess-frontend:
build:
context: vinvoor
dockerfile: Dockerfile.dev
user: ${CURRENT_UID}
ports:
- 5173:5173
volumes:
- ./vinvoor:/frontend
extra_hosts:
- "host.docker.internal:host-gateway"

volumes:
backend-packages:
db-data:
backend-compile:
backend-packages:
db-data:

0 comments on commit 21b1d89

Please sign in to comment.