-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (91 loc) · 2.1 KB
/
docker-compose.yml
File metadata and controls
92 lines (91 loc) · 2.1 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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3'
services:
postgres:
container_name: postgres
restart: always
image: postgres:latest
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "54322:5432"
environment:
- POSTGRES_DB=surfdb
- POSTGRES_USER=app_user
- POSTGRES_PASSWORD=password
postgrest:
image: postgrest/postgrest
restart: always
ports:
- "3000:3000"
links:
- postgres:db
environment:
PGRST_DB_URI: postgres://app_user:password@db:5432/surfdb
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: app_user
depends_on:
- postgres
get_spots:
container_name: get_spots
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/data
depends_on:
- postgres
links:
- postgres:db
environment:
- DATA_FOLDER=/data
- SQLALCHEMY_DATABASE_URI=postgres://app_user:password@db:5432/surfdb
command: python ./src/scraper/spots/get_spots.py
get_spot_geodata:
container_name: get_spot_geodata
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/data
depends_on:
- postgres
links:
- postgres:db
environment:
- DATA_FOLDER=/data
- SQLALCHEMY_DATABASE_URI=postgres://app_user:password@db:5432/surfdb
command: python ./src/scraper/spots/get_geodata.py
get_weather:
container_name: get_weather
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/data
depends_on:
- get_spots
- postgres
links:
- postgres:db
environment:
- DATA_FOLDER=/data
- SQLALCHEMY_DATABASE_URI=postgres://app_user:password@db:5432/surfdb
- MULTITHREAD=true
command: python ./src/scraper/weather/save.py
import_weather:
container_name: import_weather
restart: always
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/data
depends_on:
- get_spots
- postgres
links:
- postgres:db
environment:
- DATA_FOLDER=/data
- SQLALCHEMY_DATABASE_URI=postgres://app_user:password@db:5432/surfdb
command: python ./src/scraper/weather/import.py