forked from mbta/research_server_etl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (31 loc) · 876 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
version: '3.1'
services:
research_local_rds:
container_name: research_local_rds
image: postgis/postgis:15-3.4
shm_size: '1gb'
restart: unless-stopped
env_file: .env
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- 5432:5432
volumes:
- ./tests/files/init_schema.sql:/docker-entrypoint-initdb.d/gtfs.sql
research_etl:
container_name: research_etl
env_file: .env
environment:
KORBATO_SSHKEY: |-
-----BEGIN OPENSSH PRIVATE KEY-----
-----END OPENSSH PRIVATE KEY-----
build:
context: .
depends_on:
- research_local_rds
volumes:
- ~/.aws:/root/.aws:ro # map credentials to be used by boto3, read-only
working_dir: /research_server_etl
command: ["poetry", "run", "run_etl_jobs"]