-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.08 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
version: '3'
services:
postgres:
container_name: airflowmeta_example
image: postgres:12-alpine
environment:
POSTGRES_PASSWORD: airflow123
POSTGRES_USER: airflow
POSTGRES_DB: airflow
ports:
- "5432:5432"
volumes:
- ./.data/pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5432"]
interval: 30s
timeout: 10s
retries: 5
airflow:
build: .
image: airflow_compose:latest
restart: on-failure
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 10
env_file:
- config/.env.production
ports:
- "8080:8080"
- "5555:5555"
depends_on:
- postgres
- es
links:
- postgres:postgres
- es:es
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.13.0
container_name: es
environment:
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300