|
| 1 | +version: "3" |
| 2 | + |
| 3 | +services: |
| 4 | + |
| 5 | + nginx: |
| 6 | + restart: always |
| 7 | + image: nginx:latest |
| 8 | + ports: |
| 9 | + - 80:80 |
| 10 | + volumes: |
| 11 | + - ./nginx.conf:/etc/nginx/nginx.conf:ro |
| 12 | + - wirecloud-static:/var/www/static:ro |
| 13 | + depends_on: |
| 14 | + - wirecloud |
| 15 | + |
| 16 | + |
| 17 | + postgres: |
| 18 | + restart: always |
| 19 | + image: postgres:latest |
| 20 | + environment: |
| 21 | + - POSTGRES_PASSWORD=wirepass # Change this password! |
| 22 | + volumes: |
| 23 | + - postgres-data:/var/lib/postgresql/data |
| 24 | + |
| 25 | + |
| 26 | + elasticsearch: |
| 27 | + restart: always |
| 28 | + image: elasticsearch:2.4 |
| 29 | + volumes: |
| 30 | + - elasticsearch-data:/usr/share/elasticsearch/data |
| 31 | + command: elasticsearch -Des.index.max_result_window=50000 |
| 32 | + |
| 33 | + |
| 34 | + memcached: |
| 35 | + restart: always |
| 36 | + image: memcached:1 |
| 37 | + command: memcached -m 2048m |
| 38 | + |
| 39 | + |
| 40 | + wirecloud: |
| 41 | + restart: always |
| 42 | + image: fiware/wirecloud:dev |
| 43 | + depends_on: |
| 44 | + - postgres |
| 45 | + - elasticsearch |
| 46 | + - memcached |
| 47 | + environment: |
| 48 | + - DEBUG=False |
| 49 | + - LOGLEVEL=INFO |
| 50 | + # - DEFAULT_THEME=wirecloud.defaulttheme |
| 51 | + - DB_HOST=postgres |
| 52 | + - DB_PASSWORD=wirepass # Change this password! |
| 53 | + - FORWARDED_ALLOW_IPS=* |
| 54 | + - ELASTICSEARCH2_URL=http://elasticsearch:9200/ |
| 55 | + - MEMCACHED_LOCATION=memcached:11211 |
| 56 | + # Uncomment the following environment variables to enable FIWARE IDM integration |
| 57 | + #- FIWARE_IDM_SERVER=${FIWARE_IDM_SERVER} |
| 58 | + #- SOCIAL_AUTH_FIWARE_KEY=${SOCIAL_AUTH_FIWARE_KEY} |
| 59 | + #- SOCIAL_AUTH_FIWARE_SECRET=${SOCIAL_AUTH_FIWARE_SECRET} |
| 60 | + # Uncomment the following environment variables to enable Keycloak IDM Integration |
| 61 | + #- KEYCLOAK_IDM_SERVER=${KEYCLOAK_IDM_SERVER} |
| 62 | + #- KEYCLOAK_REALM=${KEYCLOAK_REALM} |
| 63 | + #- KEYCLOAK_KEY=${KEYCLOAK_KEY} |
| 64 | + #- KEYCLOAK_GLOBAL_ROLE=${KEYCLOAK_GLOBAL_ROLE} |
| 65 | + #- SOCIAL_AUTH_KEYCLOAK_KEY=${SOCIAL_AUTH_KEYCLOAK_KEY} |
| 66 | + #- SOCIAL_AUTH_KEYCLOAK_SECRET=${SOCIAL_AUTH_KEYCLOAK_SECRET} |
| 67 | + volumes: |
| 68 | + - wirecloud-data:/opt/wirecloud_instance/data |
| 69 | + - wirecloud-static:/var/www/static |
| 70 | + |
| 71 | +volumes: |
| 72 | + elasticsearch-data: |
| 73 | + postgres-data: |
| 74 | + wirecloud-data: |
| 75 | + wirecloud-static: |
0 commit comments