File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1818 go-version : 1.18
1919 - uses : actions/checkout@v3
2020 - name : Building docker containers using docker-compose
21- run : GO_MOD=go.mod docker- compose up -d --build
21+ run : GO_MOD=go.mod docker compose --env-file=./config/ci.env.dev up --wait --build backend db staging_db
2222 - name : Golang Tests
2323 run : cd backend && go test -v ./...
2424
Original file line number Diff line number Diff line change @@ -11,20 +11,22 @@ services:
1111 stdin_open : true
1212 ports :
1313 - 3001:3001
14+
1415 frontend :
1516 container_name : frontend
1617 build :
1718 context : ./frontend
1819 dockerfile : ./Dockerfile.development
19- volumes :
20- - ' ./frontend:/app'
2120 depends_on :
2221 - backend
22+ volumes :
23+ - ' ./frontend:/app'
2324 stdin_open : true
2425 ports :
2526 - 3000:3000
2627 environment :
2728 - E2E_MODE=${E2E_MODE}
29+
2830 backend :
2931 container_name : go_backend
3032 build :
@@ -45,6 +47,7 @@ services:
4547 - POSTGRES_DB=${PG_DB}
4648 - POSTGRES_PORT=${PG_PORT}
4749 - POSTGRES_HOST=${PG_HOST}
50+
4851 db :
4952 container_name : pg_container
5053 image : postgres
@@ -58,6 +61,7 @@ services:
5861 volumes :
5962 - ' ./postgres:/docker-entrypoint-initdb.d/'
6063 - ' pg_data:/var/lib/postgresql/data'
64+
6165 staging_db :
6266 container_name : pg_container_testing
6367 image : postgres
@@ -71,6 +75,7 @@ services:
7175 volumes :
7276 - ' ./postgres:/docker-entrypoint-initdb.d/'
7377 - ' staging_pg_db:/var/lib/postgresql/data'
78+
7479volumes :
7580 pg_data :
7681 staging_pg_db :
You can’t perform that action at this time.
0 commit comments