Files
speckle-server/docker-compose.yaml
T
Gergő Jedlicska 299ceee3a1 feat(dockerfile docker-compose app.js): production environment compatible build
Add consistent and optimized dockerfile with docs. Move http-proxy require to only in dev
environment. Removes mounting of server source code in the container. Restrict debug loggin only for
`speckle:*` logger.
2021-01-19 21:57:03 +01:00

64 lines
1.6 KiB
YAML

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:*"
env_file:
- .env
database:
image: "postgres" # use latest official postgres version
env_file:
- .env # configure postgres
volumes:
# persist data even if container shuts down
- speckle-postgres-data:/var/lib/postgresql/data/
# this mounts the initdb folder to the db container
# .sql .sh files are executed from this folder in alphabetical order
- ./initdb:/docker-entrypoint-initdb.d
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.conf:/tmp/redis.conf
# command: [ "redis-server", "/tmp/redis.conf"]
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: