forked from ECE444-2023Fall/UofT-EventHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 906 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3'
services:
web:
container_name: web-server
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
- FLASK_APP=app/main.py
# - ELASTICSEARCH_HOST=elasticsearch
# depends_on:
# - elasticsearch
networks:
- elk
volumes:
- ./app:/app # mounting local directory with container directory to reflect changes to flask application.
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0
# ports:
# - "9200:9200"
# - "9300:9300"
# environment:
# - "xpack.security.enabled=false"
# - "discovery.type=single-node"
# networks:
# - elk
# healthcheck:
# test: ["CMD", "curl", "-f", "http://elasticsearch:9200"]
# interval: "30s"
# timeout: "10s"
# retries: 5
networks:
elk:
name: elk