-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.62 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.2"
services:
blipp:
image: baljan/blipp
build: https://github.com/Baljan/baljans-balla-blipp.git
env_file: .env.docker
environment:
- NEXT_PUBLIC_BLIPP_API="http://localhost:5006"
ports:
- "8001:80"
celery-worker:
image: baljan/cafesys
build:
context: .
env_file: .env.docker
command: /app/bin/run-celery-worker
links:
- redis
- postgres
django:
image: baljan/cafesys
build:
context: .
env_file: .env.docker
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
command: /app/bin/run-django
ports:
- "5006:5006"
links:
- redis
- postgres
volumes:
# Mount static files after build
- ./cafesys/baljan/static:/app/cafesys/baljan/static
postgres:
image: postgres:15.7-alpine
env_file: .env.docker
volumes:
- ./database:/var/lib/postgresql/data
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
ports:
# This gives us a Postgres server listening on the host as well. This can be useful for development outside the
# Docker environment.
- 5432:5432
redis:
image: redis:3-alpine
env_file: .env.docker
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 1s
timeout: 3s
retries: 30
ports:
# This gives us a Redis server listening on the host as well. This can be useful for development outside the
# Docker environment.
- 6379:6379