-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated docker-compose and dockerization of openHAB-cloud (#176)
* Docker-Compose updates adding new nginx images (non-root) and config Signed-off-by: Mehmet Arziman <mehmet@arziman.de> * Formatting correction Signed-off-by: Mehmet Arziman <mehmet@arziman.de> * Refactored docker-compose setup to use pre-build images from DockerHub Signed-off-by: Mehmet Arziman <mehmet@arziman.de> * Removal of local images and usage of bitnami images Signed-off-by: Mehmet Arziman <mehmet@arziman.de> * Some minor changes to the Node image regarding node_modules Signed-off-by: Mehmet Arziman <mehmet@arziman.de> * Some beautification by adding a space between logo and text Signed-off-by: Mehmet Arziman <mehmet@arziman.de> * Added official openhabcloud docker images and updated documentation Signed-off-by: Mehmet Arziman <mehmet@arziman.de>
- Loading branch information
Showing
8 changed files
with
54 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,58 @@ | ||
version: '2' | ||
version: '3' | ||
services: | ||
app-1: | ||
container_name: app-1 | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/node/Dockerfile | ||
image: docker.io/openhab/openhabcloud-app | ||
volumes: | ||
- /opt/openhabcloud | ||
- app-1:/opt/openhabcloud | ||
working_dir: /opt/openhabcloud | ||
networks: | ||
- ohcloud-network | ||
links: | ||
- mongodb | ||
- redis | ||
ports: | ||
- "3000" | ||
- "3000" | ||
depends_on: | ||
- mongodb | ||
- redis | ||
restart: always | ||
mongodb: | ||
container_name: mongodb | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/mongo/Dockerfile | ||
image: bitnami/mongodb:latest | ||
command: mongod --smallfiles --bind_ip_all | ||
networks: | ||
- ohcloud-network | ||
ports: | ||
- "27017" | ||
volumes: | ||
- /data/db | ||
- /data/configdb | ||
restart: always | ||
redis: | ||
container_name: redis | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/redis/Dockerfile | ||
image: bitnami/redis:latest | ||
networks: | ||
- ohcloud-network | ||
ports: | ||
- "6379" | ||
environment: | ||
- REDIS_PASSWORD=123_openHAB | ||
restart: always | ||
nginx: | ||
container_name: nginx | ||
build: | ||
context: ./ | ||
dockerfile: ./docker/nginx/Dockerfile | ||
image: docker.io/openhab/openhabcloud-nginx | ||
volumes: | ||
- app-1:/opt/openhabcloud | ||
networks: | ||
- ohcloud-network | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
- "80:8081" | ||
- "443:8443" | ||
links: | ||
- app-1:app-1 | ||
volumes_from: | ||
- app-1 | ||
volumes: | ||
app-1: | ||
networks: | ||
ohcloud-network: | ||
driver: bridge |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Set nginx base image | ||
FROM nginx | ||
FROM bitnami/nginx | ||
|
||
# File Author / Maintainer | ||
MAINTAINER Mehmet Arziman | ||
|
||
# Copy custom configuration file from the current directory | ||
COPY ./docker/nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY ./docker/nginx/openhabcloud_nginx.conf /bitnami/nginx/conf/vhosts/my_vhost.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters