Skip to content

Instantly share code, notes, and snippets.

@peterjgrainger
Last active January 19, 2021 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterjgrainger/d120386e38c27f18289e66c260d84d82 to your computer and use it in GitHub Desktop.
Save peterjgrainger/d120386e38c27f18289e66c260d84d82 to your computer and use it in GitHub Desktop.
speckle server docker compose file
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:
@gjedlicska
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment