Last active
January 19, 2021 21:54
-
-
Save peterjgrainger/d120386e38c27f18289e66c260d84d82 to your computer and use it in GitHub Desktop.
speckle server docker compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
# this could be enabled once the server container is added | |
server: | |
build: | |
. | |
depends_on: | |
- database | |
- redis | |
ports: | |
- "3000:3000" | |
environment: | |
DEBUG: "speckle:*" | |
POSTGRES_URL: postgres://speckle:password@database/speckle_database_name | |
REDIS_URL: redis://redis:6379 | |
SESSION_SECRET: 'keyboard cat' | |
STRATEGY_LOCAL: 'true' | |
CANONICAL_URL: 'http://localhost:3000' | |
database: | |
image: "postgres" # use latest official postgres version | |
environment: | |
POSTGRES_USER: speckle | |
POSTGRES_DB: speckle_database_name | |
POSTGRES_PASSWORD: password | |
ports: | |
- "5432:5432" | |
# pgadmin: | |
# image: dpage/pgadmin4 | |
# environment: | |
# PGADMIN_DEFAULT_EMAIL: "${PGADMIN_EMAIL}" | |
# PGADMIN_DEFAULT_PASSWORD: "${PGADMIN_PASSWORD}" | |
# ports: | |
# - "16543:80" | |
# depends_on: | |
# - database | |
redis: | |
image: "redis" | |
ports: | |
- "6379:6379" # It is not neccesary to expose the reddis port if running the app with compose | |
volumes: | |
- redis_volume_data:/data | |
redis_insight: | |
image: redislabs/redisinsight:latest | |
container_name: redis_insight | |
restart: always | |
depends_on: | |
- redis | |
ports: | |
- 8001:8001 | |
volumes: | |
- redis_insight_volume_data:/db | |
volumes: | |
speckle-postgres-data: # named volumes can be managed easier using docker-compose | |
redis_volume_data: | |
redis_insight_volume_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is a bit of a hack in this file, where the source code of server is actually linked in via volume in the server container. This should be removed in my next revision.