Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-compose-files #552

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docker-platform/docker-compose-aio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
wirecloud:
image: fiware/wirecloud:latest
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
ports:
- '80:8000'
command: [ "gunicorn-aio" ]
restart: always

volumes:
wirecloud-data:
wirecloud-static:
122 changes: 57 additions & 65 deletions docker-platform/docker-compose-config-file.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,60 @@
version: "3"

services:

nginx:
restart: always
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- wirecloud-static:/var/www/static:ro
depends_on:
- wirecloud


postgres:
restart: always
image: postgres:latest
environment:
- POSTGRES_PASSWORD=wirepass # Change this password!
volumes:
- postgres-data:/var/lib/postgresql/data


elasticsearch:
restart: always
image: elasticsearch:2.4
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
command: elasticsearch -Des.index.max_result_window=50000


memcached:
restart: always
image: memcached:1
command: memcached -m 2048m


wirecloud:
restart: always
image: fiware/wirecloud:latest
depends_on:
- postgres
- elasticsearch
- memcached
environment:
- DEBUG=False
# - DEFAULT_THEME=wirecloud.defaulttheme
- DB_HOST=postgres
- DB_PASSWORD=wirepass # Change this password!
- FORWARDED_ALLOW_IPS=*
- ELASTICSEARCH2_URL=http://elasticsearch:9200/
- MEMCACHED_LOCATION=memcached:11211
# Uncomment the following environment variables to enable IDM integration
#- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER}
#- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY}
#- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET}
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
- ./settings.py:/opt/wirecloud_instance/wirecloud_instance/settings.py:ro
elasticsearch:
image: elasticsearch:2.4
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
command: elasticsearch -Des.index.max_result_window=50000
restart: always

memcached:
image: memcached:1
command: memcached -m 2048m
restart: always
nginx:
image: nginx:latest
depends_on:
- wirecloud
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- wirecloud-static:/var/www/static:ro
ports:
- '80:80'
restart: always

postgres:
image: postgres:latest
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=wirepass # Change this password!
restart: always

wirecloud:
image: fiware/wirecloud:latest
depends_on:
- elasticsearch
- memcached
- postgres
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
- ./settings.py:/opt/wirecloud_instance/wirecloud_instance/settings.py:ro
environment:
- DEBUG=False
# - DEFAULT_THEME=wirecloud.defaulttheme
- DB_HOST=postgres
- DB_PASSWORD=wirepass # Change this password!
- FORWARDED_ALLOW_IPS=*
- ELASTICSEARCH2_URL=http://elasticsearch:9200/
- MEMCACHED_LOCATION=memcached:11211
# Uncomment the following environment variables to enable IDM integration
#- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER}
#- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY}
#- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET}
restart: always

volumes:
elasticsearch-data:
postgres-data:
wirecloud-data:
wirecloud-static:
elasticsearch-data:
postgres-data:
wirecloud-data:
wirecloud-static:
29 changes: 13 additions & 16 deletions docker-platform/docker-compose-custom-user.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
version: "3"

services:

wirecloud:
restart: always
image: fiware/wirecloud:latest
# If you want to use a user from the host, provide here the id of the
# user, e.g. `export WIRECLOUD_USER=$(id -u username)`
user: ${WIRECLOUD_USER:-0}
ports:
- 80:8000
environment:
- DEBUG=True
volumes:
- ./wirecloud-data:/opt/wirecloud_instance/data
- ./wirecloud-static:/var/www/static
wirecloud:
image: fiware/wirecloud:latest
volumes:
- ./wirecloud-data:/opt/wirecloud_instance/data
- ./wirecloud-static:/var/www/static
environment:
- DEBUG=True
ports:
- '80:8000'
restart: always
# If you want to use a user from the host, provide here the id of the
# user, e.g. `export WIRECLOUD_USER=$(id -u username)`
user: ${WIRECLOUD_USER:-0}
140 changes: 65 additions & 75 deletions docker-platform/docker-compose-idm.yml
Original file line number Diff line number Diff line change
@@ -1,83 +1,73 @@
version: "3"

services:
elasticsearch:
image: elasticsearch:2.4
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
command: elasticsearch -Des.index.max_result_window=50000
restart: always

nginx:
restart: always
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- wirecloud-static:/var/www/static:ro
depends_on:
- wirecloud


postgres:
restart: always
image: postgres:latest
environment:
- POSTGRES_PASSWORD=wirepass # Change this password!
volumes:
- postgres-data:/var/lib/postgresql/data


elasticsearch:
restart: always
image: elasticsearch:2.4
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
command: elasticsearch -Des.index.max_result_window=50000


memcached:
restart: always
image: memcached:1
command: memcached -m 2048m


mysql:
restart: always
image: mysql/mysql-server:5.7.21
environment:
- MYSQL_ROOT_PASSWORD=idm
- MYSQL_ROOT_HOST=%
keyrock:
image: fiware/idm:7.0.2
environment:
- DATABASE_HOST=mysql
ports:
- '3000:3000'
restart: always

memcached:
image: memcached:1
command: memcached -m 2048m
restart: always

keyrock:
restart: always
image: fiware/idm:7.0.2
ports:
- 3000:3000
environment:
- DATABASE_HOST=mysql
mysql:
image: mysql/mysql-server:5.7.21
environment:
- MYSQL_ROOT_PASSWORD=idm
- MYSQL_ROOT_HOST=%
restart: always
nginx:
image: nginx:latest
depends_on:
- wirecloud
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- wirecloud-static:/var/www/static:ro
ports:
- '80:80'
restart: always

postgres:
image: postgres:latest
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=wirepass # Change this password!
restart: always

wirecloud:
restart: always
image: fiware/wirecloud:latest
depends_on:
- postgres
- elasticsearch
- memcached
environment:
- DEBUG=False
# - DEFAULT_THEME=wirecloud.defaulttheme
- DB_HOST=postgres
- DB_PASSWORD=wirepass # Change this password!
- FORWARDED_ALLOW_IPS=*
- ELASTICSEARCH2_URL=http://elasticsearch:9200/
- MEMCACHED_LOCATION=memcached:11211
- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER}
- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY}
- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET}
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
wirecloud:
image: fiware/wirecloud:latest
depends_on:
- elasticsearch
- memcached
- postgres
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
environment:
- DEBUG=False
# - DEFAULT_THEME=wirecloud.defaulttheme
- DB_HOST=postgres
- DB_PASSWORD=wirepass # Change this password!
- FORWARDED_ALLOW_IPS=*
- ELASTICSEARCH2_URL=http://elasticsearch:9200/
- MEMCACHED_LOCATION=memcached:11211
- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER}
- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY}
- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET}
restart: always

volumes:
elasticsearch-data:
postgres-data:
wirecloud-data:
wirecloud-static:
elasticsearch-data:
postgres-data:
wirecloud-data:
wirecloud-static:
46 changes: 21 additions & 25 deletions docker-platform/docker-compose-simple.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
version: "3"

services:
nginx:
image: nginx:latest
depends_on:
- wirecloud
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- wirecloud-static:/var/www/static:ro
ports:
- '80:80'
restart: always

nginx:
restart: always
image: nginx:latest
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- wirecloud-static:/var/www/static:ro
depends_on:
- wirecloud


wirecloud:
restart: always
image: fiware/wirecloud:latest
environment:
- DEBUG=False
- FORWARDED_ALLOW_IPS=*
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
wirecloud:
image: fiware/wirecloud:latest
volumes:
- wirecloud-data:/opt/wirecloud_instance/data
- wirecloud-static:/var/www/static
environment:
- DEBUG=False
- FORWARDED_ALLOW_IPS=*
restart: always

volumes:
wirecloud-data:
wirecloud-static:
wirecloud-data:
wirecloud-static:
Loading
Loading