Skip to content

Commit b81cef3

Browse files
committed
Use 'prod' mode for docker-compose
1 parent 99e3f70 commit b81cef3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

docker-compose.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,11 @@ services:
4949
#OS2IoT
5050
os2iot-frontend:
5151
image: "os2iot-frontend"
52-
build: "../OS2IoT-frontend"
53-
volumes:
54-
- "../OS2IoT-frontend:/app"
55-
- "/app/node_modules"
52+
build:
53+
context: "../OS2IoT-frontend"
54+
dockerfile: "Dockerfile-prod"
5655
ports:
57-
- "4201:4200"
56+
- "8081:8081"
5857
environment:
5958
BACKEND_HOSTNAME: os2iot-backend
6059
BACKEND_PORT: 3000
@@ -64,10 +63,7 @@ services:
6463
build:
6564
context: ../OS2IoT-backend
6665
dockerfile: Dockerfile
67-
target: builder
68-
volumes:
69-
- "../OS2IoT-backend:/tmp/os2iot/backend"
70-
- "/tmp/os2iot/backend/node_modules"
66+
target: prod
7167
ports:
7268
- 3000:3000
7369
healthcheck:
@@ -84,6 +80,8 @@ services:
8480
KAFKA_PORT: 9092
8581
CS_MQTT_HOSTNAME: mosquitto
8682
CS_MQTT_PORT: 1883
83+
CHIRPSTACK_APPLICATION_SERVER_HOSTNAME: chirpstack-application-server
84+
CHIRPSTACK_NETWORK_SERVER: chirpstack-network-server
8785

8886
os2iot-postgresql:
8987
restart: always

0 commit comments

Comments
 (0)