forked from learningequality/studio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
89 lines (88 loc) · 2.28 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
87
88
89
version: '3'
services:
studio-app:
build:
context: .
dockerfile: Dockerfile.dev
image: learningequality/studio-app-dev
command: npm run devserver
depends_on:
- minio
- studio-postgres
- studio-redis
ports:
- "8080:8080"
environment:
MPLBACKEND: ps
SHELL: /bin/bash
AWS_S3_ENDPOINT_URL: http://minio:9000
DATA_DB_HOST: studio-postgres
DJANGO_SETTINGS_MODULE: contentcuration.dev_settings
RUN_MODE: docker-compose
CELERY_TIMEZONE: America/Los_Angeles
CELERY_REDIS_DB: 0
CELERY_BROKER_ENDPOINT: studio-redis
CELERY_RESULT_BACKEND_ENDPOINT: studio-redis
CELERY_REDIS_PASSWORD: ""
PIPENV_HIDE_EMOJIS: "true"
volumes:
- .:/src
- studio_app_virtualenv:/root/.local/share/virtualenvs/
- pip_cache:/root/.cache/pip
studio-worker:
build:
context: .
dockerfile: Dockerfile.dev
image: learningequality/studio-app-dev
command: make prodceleryworkers
depends_on:
- minio
- studio-postgres
- studio-redis
volumes:
- .:/src
- studio_worker_virtualenv:/root/.local/share/virtualenvs/
- pip_cache:/root/.cache/pip
environment:
MPLBACKEND: ps
SHELL: /bin/bash
AWS_S3_ENDPOINT_URL: http://minio:9000
DATA_DB_HOST: studio-postgres
DJANGO_SETTINGS_MODULE: contentcuration.dev_settings
RUN_MODE: docker-compose
CELERY_TIMEZONE: America/Los_Angeles
CELERY_REDIS_DB: 0
CELERY_BROKER_ENDPOINT: studio-redis
CELERY_RESULT_BACKEND_ENDPOINT: studio-redis
CELERY_REDIS_PASSWORD: ""
PIPENV_HIDE_EMOJIS: "true"
minio:
image: minio/minio
# logging:
# driver: none
entrypoint: minio server /data
environment:
MINIO_ACCESS_KEY: development
MINIO_SECRET_KEY: development
volumes:
- minio_data:/data
- .:/src
ports:
- "9000:9000"
studio-postgres:
image: postgres:9.6
environment:
PGDATA: /postgres_data/pgdata
POSTGRES_USER: learningequality
POSTGRES_PASSWORD: kolibri
POSTGRES_DB: gonano
volumes:
- pgdata:/postgres_data/
studio-redis:
image: redis:4.0.9
volumes:
minio_data:
pgdata:
studio_app_virtualenv:
studio_worker_virtualenv:
pip_cache: