Skip to content

Commit fdcfbde

Browse files
committed
Local development fixed
1 parent d57417f commit fdcfbde

File tree

3 files changed

+47
-2
lines changed

3 files changed

+47
-2
lines changed

.env.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ FRONTEND_REPO_URL=github.com/perfetti/react1-app.git
66
BACKEND_REPO_URL=github.com/perfetti/react2-app.git
77
API_REPO_URL=github.com/perfetti/rails-app.git
88

9-
# Repository References
9+
# Repository References, these can be overwritten in their repos
10+
# To make is so we can run against different branches from their repos
1011
FRONTEND_REF=main
1112
BACKEND_REF=main
1213
API_REF=main

build_local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
source ./setup_local.sh
33

44
# Run Docker Compose
5-
docker-compose up --build -d
5+
docker-compose -f docker-compose.local.yaml up --build

docker-compose.local.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
services:
2+
frontend:
3+
extends:
4+
file: docker-compose.yaml
5+
service: frontend
6+
volumes:
7+
- ./repo_refs/react1-app:/app
8+
backend:
9+
extends:
10+
file: docker-compose.yaml
11+
service: backend
12+
volumes:
13+
- ./repo_refs/react2-app:/app
14+
api:
15+
extends:
16+
file: docker-compose.yaml
17+
service: api
18+
depends_on:
19+
db:
20+
condition: service_healthy
21+
volumes:
22+
- ./repo_refs/rails-app:/app
23+
db:
24+
extends:
25+
file: docker-compose.yaml
26+
service: db
27+
28+
nginx:
29+
extends:
30+
file: docker-compose.yaml
31+
service: nginx
32+
volumes:
33+
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
34+
depends_on:
35+
- api
36+
- frontend
37+
- backend
38+
39+
networks:
40+
app-network:
41+
driver: bridge
42+
43+
volumes:
44+
postgres_data:

0 commit comments

Comments
 (0)