-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.23 KB
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
version: '2'
services:
opac-airflow:
build: ./
ports:
- "8080:8080"
command: /start_airflow.sh
environment:
- AIRFLOW_HOME=/usr/local/airflow
- EMIAL_ON_FAILURE_RECIPIENTS=infra@scielo.org
- AIRFLOW__SMTP__SMTP_HOST=${AIRFLOW__SMTP__SMTP_HOST}
- AIRFLOW__SMTP__SMTP_USER=${AIRFLOW__SMTP__SMTP_USER}
- AIRFLOW__SMTP__SMTP_PASSWORD=${AIRFLOW__SMTP__SMTP_PASSWORD}
- AIRFLOW__SMTP__SMTP_MAIL_FROM=${AIRFLOW__SMTP__SMTP_MAIL_FROM}
- AIRFLOW__SMTP__SMTP_SSL=${AIRFLOW__SMTP__SMTP_SSL}
- AIRFLOW__SMTP__SMTP_PORT=${AIRFLOW__SMTP__SMTP_PORT}
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgres_pass
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=opac_airflow
links:
- postgres:postgres
depends_on:
- postgres
postgres:
image: postgres:9.6-alpine
restart: always
environment:
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgres_pass
- POSTGRES_DB=opac_airflow
volumes:
- ./data/pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"