-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose-load-data.yaml
39 lines (37 loc) · 1.36 KB
/
docker-compose-load-data.yaml
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
x-common-infos:
# Env variables stored in a .env file at same level than docker-compose.yaml
environment: &common-env
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME:-postgres_bloom}
POSTGRES_DB: ${POSTGRES_DB:-bloom_db}
POSTGRES_USER: ${POSTGRES_USER:-bloom_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-bloom}
LOGGING_LEVEL: ${LOGGING_LEVEL:-INFO}
services:
load-data:
container_name: bloom-load-data
image: d4g/bloom-backend:${VERSION:-latest}
entrypoint: /bin/bash
# Nominal start:
command:
- -c
- "/.venv/bin/python backend/bloom/tasks/load_dim_vessel_from_csv.py &&
/.venv/bin/python backend/bloom/tasks/load_dim_zone_amp_from_csv.py &&
/.venv/bin/python backend/bloom/tasks/load_dim_port_from_csv.py &&
/.venv/bin/python backend/bloom/tasks/load_spire_data_from_csv.py &&
/.venv/bin/python backend/bloom/tasks/compute_port_geometry_buffer.py &&
/.venv/bin/python backend/bloom/tasks/clean_positions.py --batch-time 100000 &&
/.venv/bin/python backend/bloom/tasks/create_update_excursions_segments.py"
volumes:
- ./:/project/
- ./data:/project/data
environment:
<<: *common-env
POSTGRES_PORT: 5432
networks:
- bloom_net
depends_on:
bloom-init:
condition: service_completed_successfully
networks:
bloom_net:
name: bloom_net