Skip to content

Instantly share code, notes, and snippets.

@elfmimi
Last active July 19, 2020 11:16
Show Gist options
  • Save elfmimi/91d95c8bceaf4aa4a890471f7818014d to your computer and use it in GitHub Desktop.
Save elfmimi/91d95c8bceaf4aa4a890471f7818014d to your computer and use it in GitHub Desktop.
docker-compose.yml to configure all five qmk-configurator backend components
version: '3'
# This file should live in a directory about `qmk_api` and `qmk_compiler`
# Eventually we would have some sort of git subdir or something to contain
# this... For now, just cp (or symlink) it up a dir or something.
services:
qmk_conf:
build: ./qmk_configurator
ports:
- "8080:80"
environment:
VUE_APP_API_URL: /api
QMK_API_URL: http://qmk_api:5001
qmk_api:
build: ./qmk_api
ports:
- "5000:5001"
environment:
REDIS_HOST: redis
S3_HOST: http://config.qmk.applause.jp:9000
S3_ACCESS_KEY: minio_dev
S3_SECRET_KEY: minio_dev_secret
UPDATE_API: 'true'
qmk_compiler:
build: ./qmk_compiler
environment:
MINIO_ACCESS_KEY: minio_dev
MINIO_SECRET_KEY: minio_dev_secret
S3_ACCESS_KEY: minio_dev
S3_SECRET_KEY: minio_dev_secret
REDIS_HOST: redis
S3_HOST: http://minio:9000
API_URL: http://config.qmk.applause.jp:8080/api
# QMK_GIT_URL: https://github.com/elfmimi/qmk_firmware.git
# QMK_GIT_BRANCH: edrug-configurator
# CHIBIOS_CONTRIB_GIT_URL: https://github.com/elfmimi/ChibiOS-Contrib.git
# CHIBIOS_CONTRIB_GIT_BRANCH: nuvoton_nuc123
minio:
image: minio/minio:RELEASE.2018-09-25T21-34-43Z
volumes:
- data:/data
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: minio_dev
MINIO_SECRET_KEY: minio_dev_secret
S3_ACCESS_KEY: minio_dev
S3_SECRET_KEY: minio_dev_secret
command: server minio_data
restart: always
redis:
image: redis:4.0
# For some reason this doesn't seem to work... I still get:
# `# Warning: no config file specified, using the default config.`
#volumes:
# ./redis contains a redis.conf file, /usr/local/etc/redis/
# is supposedly where redis looks for its conf
# - ./redis/:/usr/local/etc/redis/
# ports:
# - "6379:6379"
restart: always
volumes:
data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment