File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ # Application
2
+ APPLICATION_PORT = 5000
3
+
1
4
# Backend
2
5
BACKEND_HOST = 0.0.0.0
3
6
BACKEND_PORT = 1337
@@ -18,7 +21,7 @@ DATABASE_PASSWORD=postgres
18
21
DATABASE_SSL = false
19
22
20
23
# Frontend
21
- PORT = 3000
24
+ FRONTEND_PORT = 3000
22
25
STRAPI_API_KEY = addyourapikeyhere
23
26
NEXT_PUBLIC_STRAPI_URL = http://strapi:1337
24
27
NEXT_PUBLIC_STRAPI_IMAGE_URL = http://localhost:5000/strapi
Original file line number Diff line number Diff line change @@ -23,15 +23,14 @@ services:
23
23
interval : 30s
24
24
timeout : 30s
25
25
retries : 5
26
- start_period : 30s
26
+ start_period : 50s
27
27
start_interval : 10s
28
28
depends_on :
29
29
- db
30
30
volumes :
31
31
- type : bind
32
32
source : ./backend
33
33
target : /app
34
-
35
34
env_file :
36
35
- .env
37
36
@@ -44,6 +43,8 @@ services:
44
43
strapi :
45
44
condition : service_healthy
46
45
restart : true
46
+ environment :
47
+ - PORT=${FRONTEND_PORT}
47
48
env_file :
48
49
- .env
49
50
volumes :
@@ -57,10 +58,10 @@ services:
57
58
dockerfile : Dockerfile
58
59
context : ./nginx
59
60
args :
60
- - FRONTEND_PORT=${PORT }
61
+ - FRONTEND_PORT=${FRONTEND_PORT }
61
62
- BACKEND_PORT=${BACKEND_PORT}
62
63
ports :
63
- - " 3050 :80"
64
+ - " ${APPLICATION_PORT} :80"
64
65
env_file :
65
66
- .env
66
67
depends_on :
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ services:
43
43
strapi :
44
44
condition : service_healthy
45
45
restart : true
46
+ environment :
47
+ - PORT=${FRONTEND_PORT}
46
48
env_file :
47
49
- .env
48
50
@@ -52,10 +54,10 @@ services:
52
54
dockerfile : Dockerfile
53
55
context : ./nginx
54
56
args :
55
- - FRONTEND_PORT=${PORT }
57
+ - FRONTEND_PORT=${FRONTEND_PORT }
56
58
- BACKEND_PORT=${BACKEND_PORT}
57
59
ports :
58
- - " 3050 :80"
60
+ - " ${APPLICATION_PORT} :80"
59
61
env_file :
60
62
- .env
61
63
depends_on :
You can’t perform that action at this time.
0 commit comments