Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faster rust, more docker #88

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 42 additions & 39 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,47 @@
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=zess
- 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-target:/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-target:
db-data:
2 changes: 1 addition & 1 deletion vingo/dev.env
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
DEBUG_LOGIN="FALSE"
DEVELOPMENT="TRUE"

POSTGRES_CONNECTION_STRING="postgres://postgres:[email protected]/zess?sslmode=disable"
POSTGRES_CONNECTION_STRING="postgres://zess:[email protected]/zess?sslmode=disable"
ZAUTH_URL="https://zauth.zeus.gent"
ZAUTH_CALLBACK_PATH="http://localhost:4000/api/auth/callback"
FRONTEND_URL="http://localhost:5173/"
Expand Down
Loading