-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_cd_pipeline.yaml
More file actions
51 lines (45 loc) · 1017 Bytes
/
_cd_pipeline.yaml
File metadata and controls
51 lines (45 loc) · 1017 Bytes
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
version: '3'
services:
fastapi-app:
container_name: cvdeploy
build: .
ports:
- "8001:8001"
env_file:
- ~/.cv_deploy.env
networks:
micro-services-network:
ipv4_address: 192.168.0.10
restart: always
redis:
image: "redis:latest"
ports:
- "6379:6379"
volumes:
- ~/redis_data:/data
networks:
micro-services-network:
ipv4_address: 192.168.0.7
worker:
container_name: celery_workers
build:
context: .
dockerfile: Dockerfile.Celery
command: celery -A app.services.celery.celery_config.celery_app worker --loglevel=info
env_file:
- ~/.cv_deploy.env
depends_on:
- redis
- fastapi-app
networks:
micro-services-network:
ipv4_address: 192.168.0.8
volumes:
- ~/celery_store1:/celery-data
networks:
micro-services-network:
ipam:
driver: default
config:
- subnet: "192.168.0.0/24"
gateway: "192.168.0.1"