Skip to content

Commit 610ebbf

Browse files
committed
Fix invocation of wait-for-it and re-add ports into docker compose
1 parent 88e5b6e commit 610ebbf

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
run: |
115115
docker compose --profile prod up --abort-on-container-exit &
116116
sudo apt install -y wait-for-it
117-
wait-for-it http://localhost:8081 -t 120
117+
wait-for-it localhost:8081 -t 120
118118
119119
- name: Run end-to-end tests
120120
working-directory: ./webapp

Diff for: docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ services:
1010
target: production
1111
volumes:
1212
- ./logs:/logs
13+
ports:
14+
- "8081:8081"
1315

1416
app_dev:
1517
restart: always
@@ -21,6 +23,8 @@ services:
2123
volumes:
2224
- ./logs:/logs
2325
- ./webapp:/app
26+
ports:
27+
- "8081:8081"
2428

2529
api:
2630
restart: always
@@ -35,6 +39,8 @@ services:
3539
- ./logs:/logs
3640
environment:
3741
- PYDATALAB_MONGO_URI=mongodb://mongo:27017/datalabvue
42+
ports:
43+
- "5001:5001"
3844

3945
api_dev:
4046
restart: always
@@ -50,6 +56,8 @@ services:
5056
- ./pydatalab:/app
5157
environment:
5258
- PYDATALAB_MONGO_URI=mongodb://mongo:27017/datalabvue
59+
ports:
60+
- "5001:5001"
5361

5462
mongo:
5563
restart: always
@@ -58,6 +66,8 @@ services:
5866
dockerfile: .docker/mongo_dockerfile
5967
volumes:
6068
- ./logs:/var/logs/mongod
69+
ports:
70+
- "27017:27017"
6171

6272
volumes:
6373
sockets:

0 commit comments

Comments
 (0)