├── .gitpod.yml ├── LICENSE ├── README.md └── docker-compose.yml /.gitpod.yml: -------------------------------------------------------------------------------- 1 | tasks: 2 | - init: | 3 | docker-compose pull 4 | - command: | 5 | docker-compose up 6 | 7 | 8 | ports: 9 | - port: 5000 10 | onOpen: ignore 11 | - port: 5601 12 | onOpen: open-browser 13 | - port: 9200 14 | onOpen: open-preview 15 | - port: 9300 16 | onOpen: ignore 17 | - port: 9600 18 | onOpen: ignore 19 | 20 | vscode: 21 | extensions: 22 | - ms-azuretools.vscode-docker 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Gitpod 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A Docker Compose template on Gitpod 2 | 3 | This is a [Docker Compose](https://docs.docker.com/compose/) template configured for ephemeral development environments on [Gitpod](https://www.gitpod.io/). 4 | 5 | ## Next Steps 6 | 7 | Click the button below to start a new development environment: 8 | 9 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/template-docker-compose) 10 | 11 | ## Get Started With Your Own Project 12 | 13 | ### A new project 14 | 15 | Click the above "Open in Gitpod" button to start a new workspace. Once you're ready to push your first code changes, Gitpod will guide you to fork this project so you own it. 16 | 17 | ### An existing project 18 | 19 | To get started with Docker Compose on Gitpod, copy the contents of this folder to your own project. To learn more, please see the [Getting Started](https://www.gitpod.io/docs/getting-started) documentation. 20 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.8' 2 | 3 | services: 4 | elasticsearch: 5 | image: elasticsearch:7.8.0 6 | container_name: es 7 | environment: 8 | discovery.type: single-node 9 | ES_JAVA_OPTS: "-Xms512m -Xmx512m" 10 | ports: 11 | - "9200:9200" 12 | - "9300:9300" 13 | healthcheck: 14 | test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"] 15 | interval: 10s 16 | timeout: 10s 17 | retries: 3 18 | networks: 19 | - elastic 20 | logstash: 21 | image: logstash:7.8.0 22 | container_name: log 23 | environment: 24 | discovery.seed_hosts: logstash 25 | LS_JAVA_OPTS: "-Xms512m -Xmx512m" 26 | volumes: 27 | - ./logstash/pipeline/logstash-nginx.config:/usr/share/logstash/pipeline/logstash-nginx.config 28 | - ./logstash/nginx.log:/home/nginx.log 29 | ports: 30 | - "5000:5000/tcp" 31 | - "5000:5000/udp" 32 | - "5044:5044" 33 | - "9600:9600" 34 | depends_on: 35 | - elasticsearch 36 | networks: 37 | - elastic 38 | command: logstash -f /usr/share/logstash/pipeline/logstash-nginx.config 39 | kibana: 40 | image: kibana:7.8.0 41 | container_name: kib 42 | ports: 43 | - "5601:5601" 44 | depends_on: 45 | - elasticsearch 46 | networks: 47 | - elastic 48 | networks: 49 | elastic: 50 | driver: bridge 51 | # default MTU size in docker-compose is 1500 52 | driver_opts: 53 | com.docker.network.driver.mtu: 1440 54 | --------------------------------------------------------------------------------