-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.39 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
version: "3.9"
services:
backend:
build: ./backend
ports:
- "8080:8080"
environment:
DB_HOST: db
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: captrivia
DB_PORT: 5432
PG_PASSWORD: postgres
depends_on:
- db
volumes:
- type: bind
source: ./backend
target: /app
command: go run .
frontend:
build: ./frontend
ports:
- "3000:3000"
volumes:
- type: bind
source: ./frontend
target: /app
- type: volume
source: node_modules
target: /app/node_modules
environment:
REACT_APP_BACKEND_URL: http://localhost:8080
depends_on:
- backend
db:
image: postgres:13-alpine
build: ./db
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: captrivia
PG_PASSWORD: postgres
volumes:
- type: volume
source: postgres_data
target: /var/lib/postgresql/data
jupyter:
build: ./jupyter
image: jupyter/minimal-notebook
command: start-notebook.sh --NotebookApp.token=''
ports:
- 8888:8888
depends_on:
- db
dbt:
build: ./dbt
image: dbt-captrivia
volumes:
- ./:/usr/src/dbt
depends_on:
- db
environment:
DBT_PROFILES_DIR: ./profiles
volumes:
postgres_data:
node_modules: