Skip to content

Commit

Permalink
backend proxy in development
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxuanbao committed Apr 9, 2023
1 parent 29d1032 commit 10b71ce
Show file tree
Hide file tree
Showing 5 changed files with 331 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ services:
context: ../backend
target: dev-envs
environment:
- ADDRESS=0.0.0.0:8000
- RUST_LOG=debug
- PG_DBNAME=postgres
- PG_DBNAME=${POSTGRES_DB}
- PG_HOST=db
- PG_USER=postgres
- PG_PASSWORD=mysecretpassword
- ADDRESS=0.0.0.0:8000
- PG_USER=${POSTGRES_USER}
- PG_PASSWORD=${POSTGRES_PASSWORD}
networks:
- client-side
- server-side
Expand All @@ -34,7 +34,9 @@ services:
image: postgres:12-alpine
restart: always
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- server-side
ports:
Expand All @@ -48,4 +50,4 @@ networks:

volumes:
backend-cache: {}
db-data: {}
db-data: {}
3 changes: 2 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ services:
frontend:
build:
context: frontend
target: development
networks:
- client-side
ports:
- 3000:80
- 3000:3000
volumes:
- ./frontend/src:/code/src:ro

Expand Down
Loading

0 comments on commit 10b71ce

Please sign in to comment.