-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
52 lines (50 loc) · 1.3 KB
/
docker-compose.prod.yml
File metadata and controls
52 lines (50 loc) · 1.3 KB
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
services:
init-workspaces:
image: alpine:latest
container_name: pipelinex-init
user: root
volumes:
- ./workspaces:/workspaces
command: >
sh -c "
mkdir -p /workspaces &&
chmod -R 777 /workspaces &&
echo 'Workspace permissions initialized'
"
backend:
image: abderrahmane03/pipelinex:backend-latest
container_name: pipelinex-backend
volumes:
- ./workspaces:/workspaces
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8000:8000"
environment:
- HOST_WORKSPACES_PATH=${HOST_WORKSPACES_PATH}
depends_on:
init-workspaces:
condition: service_completed_successfully
redis:
condition: service_started
worker:
build:
context: .
dockerfile: backend/Dockerfile
container_name: pipelinex-worker
user: root
command: celery -A celery_app.celery_app worker --loglevel=info
volumes:
- ./workspaces:/workspaces
- /var/run/docker.sock:/var/run/docker.sock
environment:
- HOST_WORKSPACES_PATH=${HOST_WORKSPACES_PATH}
depends_on:
init-workspaces:
condition: service_completed_successfully
redis:
condition: service_started
redis:
image: redis:7-alpine
container_name: pipelinex-redis
ports:
- "6379:6379"