You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
930 B
YAML
52 lines
930 B
YAML
5 years ago
|
services:
|
||
5 years ago
|
frontend:
|
||
|
build:
|
||
|
context: frontend
|
||
|
target: development
|
||
|
networks:
|
||
|
- client-side
|
||
|
ports:
|
||
|
- 3000:3000
|
||
|
volumes:
|
||
|
- ./frontend/src:/code/src:ro
|
||
3 years ago
|
|
||
5 years ago
|
backend:
|
||
|
build:
|
||
|
context: backend
|
||
|
target: development
|
||
5 years ago
|
environment:
|
||
3 years ago
|
- ADDRESS=0.0.0.0:8000
|
||
|
- RUST_LOG=debug
|
||
|
- PG_DBNAME=postgres
|
||
|
- PG_HOST=db
|
||
|
- PG_USER=postgres
|
||
|
- PG_PASSWORD=mysecretpassword
|
||
5 years ago
|
networks:
|
||
5 years ago
|
- client-side
|
||
5 years ago
|
- server-side
|
||
|
volumes:
|
||
5 years ago
|
- ./backend/src:/code/src
|
||
5 years ago
|
- backend-cache:/code/target
|
||
5 years ago
|
depends_on:
|
||
|
- db
|
||
3 years ago
|
|
||
5 years ago
|
db:
|
||
|
image: postgres:12-alpine
|
||
|
restart: always
|
||
|
environment:
|
||
|
- POSTGRES_PASSWORD=mysecretpassword
|
||
|
networks:
|
||
|
- server-side
|
||
|
ports:
|
||
|
- 5432:5432
|
||
|
volumes:
|
||
|
- db-data:/var/lib/postgresql/data
|
||
3 years ago
|
|
||
5 years ago
|
networks:
|
||
|
client-side: {}
|
||
|
server-side: {}
|
||
3 years ago
|
|
||
5 years ago
|
volumes:
|
||
|
backend-cache: {}
|
||
5 years ago
|
db-data: {}
|