-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (68 loc) · 1.73 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
version: '3.7'
volumes:
data-db:
services:
db:
image: postgres:10.3
expose:
- 5432
volumes:
- ./db:/mnt/db
- ./db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- data-db:/var/lib/postgresql/data
environment:
# TODO: change this password, currently checked into git
POSTGRES_PASSWORD: A224697C73DDC7439E35E7272909246D0AB8E5BBE
POSTGRES_USER: gitsu
POSTGRES_DB: gitsu
# Service for Analytics
# analytics:
# build:
# context: analytics/.
# dockerfile: Dockerfile-dev
# volumes:
# - ./analytics:/opt/analytics
# - ./:/opt/gitsu_root
# ports:
# - 8888:8888
# depends_on:
# - db
# environment:
# JUPYTER_CONFIG_DIR: '/opt/analytics/'
# JUPYTER_PASSWORD: 'abc123'
# JUPYTER_ENABLE_LAB: 'yes'
# CONFIG_FILES: 'base.yaml:/opt/gitsu_root/local_settings.yaml'
# Service for ETL using Airflow
etl:
build:
context: etl/.
volumes:
- ./etl:/usr/src/app
- ./:/opt/jiu_gitsu_root
depends_on:
- db
environment:
APP_CONFIG: 'etl.conf.dev'
# Generate a token and put that token into .env file
# https://github.com/settings/tokens
# GITHUB_TOKEN=2AB...E2
GITHUB_TOKEN: ${GITHUB_TOKEN}
POSTGRES_PASSWORD: A224697C73DDC7439E35E7272909246D0AB8E5BBE
POSTGRES_USER: gitsu
POSTGRES_DB: gitsu
POSTGRES_HOST: db
POSTGRES_PORT: 5432
ports:
- "8080:8080"
# # Service for Analytics
# gitsu_web:
# build: ./gitsu_web/.
# volumes:
# - ./gitsu_web/src:/go/src
# command: watcher -run main
# ports:
# - 8080:8080
# depends_on:
# - db
# links:
# - db