-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (81 loc) · 1.67 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
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
version: "3.8"
services:
postgres:
image: postgis/postgis
environment:
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_DB: smart
ports:
- '5432:5432'
volumes:
- pgdata:/var/lib/postgresql/data
- ./postgres:/docker-entrypoint-initdb.d
postgraphile:
build:
context: ./postgraphile
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
depends_on:
- postgres
ports:
- '4000:3000'
volumes:
- ./postgraphile:/usr/src/app
- /usr/src/app/node_modules
- ./data:/data:z
ingest:
build:
context: ./python/ingest_server
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
depends_on:
- postgres
ports:
- "4199:4199"
volumes:
- ./python/ingest_server:/app
- ./data:/data:z
restart: always
moviegen:
build:
context: ./python/moviegen
environment:
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: postgres
RDWATCH_USERNAME: $RDWATCH_USERNAME
RDWATCH_PASSWORD: $RDWATCH_PASSWORD
RDWATCH_HOST: $RDWATCH_HOST
volumes:
- ./data:/data:z
depends_on:
- postgres
geocode:
build:
context: ./python/geocode
environment:
- DB_USER
- DB_PASSWORD
- DB_HOST
depends_on:
- postgres
react:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
depends_on:
- postgraphile
environment:
REACT_APP_GRAPHQL_URL: http://localhost:4000/graphql
volumes:
- ./frontend/react:/app
- ./data:/app/public/data
volumes:
pgdata: