-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (62 loc) · 1.27 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
search:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
env_file: .env
ports:
- ${ELASTIC_PORT}:9200
restart: on-failure
mem_limit: 1GB
volumes:
- ./elastic_data:/usr/share/elasticsearch/data
healthcheck:
test:
[
"CMD-SHELL",
"curl -u elastic:$ELASTIC_PASSWORD --fail http://localhost:9200 || exit 1"
]
interval: 1s
timeout: 1s
retries: 120
profiles:
- dev
- prod
chrono-dev:
build:
context: .
dockerfile: ./chrono/docker/dev/Dockerfile
env_file: .env
ports:
- ${CHRONO_PORT}:${CHRONO_PORT}
restart: on-failure
depends_on:
search:
condition: service_healthy
networks:
default:
aliases:
- chrono
profiles:
- dev
chrono-prod:
build:
context: .
dockerfile: ./chrono/docker/prod/Dockerfile
args:
- CHRONO_PORT=${CHRONO_PORT}
env_file: .env
ports:
- ${CHRONO_PORT}:${CHRONO_PORT}
restart: on-failure
depends_on:
search:
condition: service_healthy
networks:
default:
aliases:
- chrono
profiles:
- prod
networks:
default:
name: chrono_net
external: true