-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
56 lines (52 loc) · 1.29 KB
/
compose.yaml
File metadata and controls
56 lines (52 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.8'
services:
# Backend API service
api:
build:
context: ./src/
dockerfile: Dockerfile
container_name: rates-backend
ports:
- "8080:8080"
environment:
- NODE_ENV=development
volumes:
- ./src/:/app
restart: unless-stopped
networks:
- app-network
develop:
# Create a `watch` configuration to update the appl
# https://docs.docker.com/compose/file-watch/#compose-watch-versus-bind-mounts
watch:
# Sync the working directory with the `/app` directory in the container
- action: sync
path: .
target: /app
# Exclude the project virtual environment — it could be for a
# different platform in the container
ignore:
- .venv/
# Rebuild the image if dependencies change by checking uv.lock
- action: rebuild
path: ./uv.lock
# Frontend UI service
ui:
build:
context: ./ui # clone before
dockerfile: Dockerfile
container_name: rates-app
ports:
- "3000:80"
environment:
- REACT_APP_API_URL=http://localhost:8080/rates/
volumes:
- ./ui:/app
restart: unless-stopped
networks:
- app-network
depends_on:
- api
networks:
app-network:
driver: bridge