2024-03-11 19:59:47 -07:00
|
|
|
# this docker-compose does not include a build for the Canvas image
|
|
|
|
# generate the image via a build script
|
|
|
|
|
|
|
|
name: canvas
|
|
|
|
|
|
|
|
services:
|
|
|
|
canvas:
|
|
|
|
image: sc07/canvas
|
2024-04-02 15:52:39 -07:00
|
|
|
build: .
|
2024-03-11 19:59:47 -07:00
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
2024-07-10 09:16:54 -07:00
|
|
|
# - "9229:9229"
|
2024-03-11 19:59:47 -07:00
|
|
|
environment:
|
|
|
|
- REDIS_HOST=redis://redis
|
|
|
|
- DATABASE_URL=postgres://postgres@postgres/canvas
|
2024-07-10 09:16:54 -07:00
|
|
|
# - SCRIPT_TO_RUN=profiler
|
2024-05-28 20:00:55 -07:00
|
|
|
env_file:
|
|
|
|
- .env.local
|
2024-03-11 19:59:47 -07:00
|
|
|
depends_on:
|
2024-05-26 13:59:07 -07:00
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
2024-06-26 17:38:46 -07:00
|
|
|
worker:
|
|
|
|
image: sc07/canvas
|
|
|
|
build: .
|
|
|
|
environment:
|
|
|
|
- REDIS_HOST=redis://redis
|
|
|
|
- DATABASE_URL=postgres://postgres@postgres/canvas
|
|
|
|
env_file:
|
|
|
|
- .env.local
|
|
|
|
depends_on:
|
|
|
|
- canvas
|
|
|
|
command: ./docker-start-worker.sh
|
2024-03-11 19:59:47 -07:00
|
|
|
redis:
|
|
|
|
restart: always
|
|
|
|
image: redis:7-alpine
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD', 'redis-cli', 'ping']
|
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
|
|
|
postgres:
|
|
|
|
restart: always
|
|
|
|
image: postgres:14-alpine
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
|
|
|
volumes:
|
|
|
|
- ./data/postgres:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- 'POSTGRES_HOST_AUTH_METHOD=trust'
|
|
|
|
|