1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-25 18:28:07 +02:00

refacto(react-rust-postgres): replace rocket by actix-web (#153)

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet 2021-07-06 19:00:16 +02:00 committed by GitHub
parent 0ae9d4cea7
commit a13fabe604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 114 additions and 172 deletions

View file

@ -10,12 +10,18 @@ services:
- 3000:3000
volumes:
- ./frontend/src:/code/src:ro
backend:
build:
context: backend
target: development
environment:
- DATABASE_URL=postgres://postgres:mysecretpassword@db/postgres
- ADDRESS=0.0.0.0:8000
- RUST_LOG=debug
- PG_DBNAME=postgres
- PG_HOST=db
- PG_USER=postgres
- PG_PASSWORD=mysecretpassword
networks:
- client-side
- server-side
@ -24,6 +30,7 @@ services:
- backend-cache:/code/target
depends_on:
- db
db:
image: postgres:12-alpine
restart: always
@ -35,9 +42,11 @@ services:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data
networks:
client-side: {}
server-side: {}
volumes:
backend-cache: {}
db-data: {}