-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
82 lines (76 loc) · 3.47 KB
/
docker-compose.dev.yml
File metadata and controls
82 lines (76 loc) · 3.47 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
---
# override/additions to docker-compose.yml for development
# This defines dev image names and how to build them
# as well as development port mapping and volume binding
# to local repository working directories
version: '3.7'
services:
edu-mm:
image: 'rifflearning/riffmm:dev'
build:
context: riffmm
dockerfile: Dockerfile
target: dev
args:
NODE_VER: 18
GOLANG_VER: 1.17.13
environment:
RIFF_LOGLEVEL: debug
volumes:
- ${MM_SERVER_PATH-../mattermost-server}:/home/mmuser/go/src/github.com/mattermost/mattermost-server
- ${MM_WEBAPP_PATH-../mattermost-webapp}:/home/mmuser/go/src/github.com/mattermost/mattermost-webapp
# For doing development inside the container:
# ~/.npmrc is bound to allow private npm registries
# see https://docs.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages
# e.g. npm login --scope=@rifflearning --registry=https://npm.pkg.github.com
# ~/.netrc is bound to allow private go modules
# see https://golang.org/doc/faq#git_https
- ~/.npmrc:/home/mmuser/.npmrc
- ~/.netrc:/home/mmuser/.netrc
# for doing development on the riff plugins:
- ${MM_PLUGIN_SURVEY_PATH-../mattermost-plugin-riff-survey}:/home/mmuser/riff/mattermost-plugin-riff-survey
- ${MM_PLUGIN_CORE_PATH-../mattermost-plugin-riff-core}:/home/mmuser/riff/mattermost-plugin-riff-core
- ${MM_PLUGIN_LTI_PATH-../mattermost-plugin-riff-lti}:/home/mmuser/riff/mattermost-plugin-riff-lti
- ${MM_RIFF_VIDEOCHAT_PATH-../riff-plugin-video-chat}:/home/mmuser/riff/riff-plugin-video-chat
- ${MM_RIFF_METRICS_PATH-../riff-plugin-metrics}:/home/mmuser/riff/riff-plugin-metrics
edu-riffdata:
image: 'ghcr.io/rifflearning/riff-server/riffdata:${RIFFDATA_TAG-2.2.1}'
ports:
- '3000:3000'
# The following is just in case you need to be doing development on the riffdata server in
# conjunction w/ edu. This would be unusual.
# edu-riffdata:
# image: 'rifflearning/riffdata:dev'
# build:
# context: ${RIFF_SERVER_PATH-../riff-server}/docker
# dockerfile: Dockerfile-dev
# args:
# NODE_VER: 12
# PORT: 3000
# ports:
# - '3000:3000'
# volumes:
# - ${RIFF_SERVER_PATH-../riff-server}:/app
# Although the dev edu-web is the same as the production edu-web built w/ the release script
# we give it a dev image name and tag. Also the prod edu-web uses config and volumes that dev doesn't
edu-web:
image: 'rifflearning/edu-web:dev'
build:
context: edu-web
dockerfile: Dockerfile
args:
NGINX_VER: latest
# If you need to get and use letsencrypt certs on your dev machine you will need some form of
# these volumes. The ones to preserve the certs and nginx config changes after a container is removed
# and recreated (as is done for prod), and ones to inject the private key for the letsencrypt riff accounts.
# volumes:
# - letsencrypt-data:/etc/letsencrypt
# - nginx-snippets:/etc/nginx/snippets
# - edu-web/ffe8-private_key.json:/etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/ffe85d86a55543ea1d026e0cd44f5050/private_key.json:ro
# - edu-web/ceea-private_key.json:/etc/letsencrypt/accounts/acme-staging-v02.api.letsencrypt.org/directory/ceea58b40644ba4347b37bb4736eb377/private_key.json:ro
edu-riffdata-db:
ports:
- '27017:27017'
edu-mm-db:
ports:
- '3306:3306'