Files
speckle-server/docker-compose.yaml
T
2021-01-14 19:28:15 +01:00

42 lines
1.1 KiB
YAML

version: "3"
services:
# this could be enabled once the server container is added
# server:
# build:
# .
# depends_on:
# - database
# - redis
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:
speckle-postgres-data: # named volumes can be managed easier using docker-compose