-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
98 lines (95 loc) · 2.25 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.3"
services:
openapi_generator:
image: openapitools/openapi-generator-online:latest-release
ports:
- "8081:8080"
depends_on:
- mongo
- celery
networks:
backend:
ipv4_address: 10.0.0.10
volumes:
- ./app/:/app
redis_server:
image: redis
command: redis-server
networks:
backend:
ipv4_address: 10.0.0.3
flower:
build:
context: ./
dockerfile: ./Dockerfile
command: flower
ports:
- "5555:5555"
environment:
FLOWER_PORT: 5555
REDIS_URI: redis://:@10.0.0.3:6379
depends_on:
- mongo
- celery
networks:
backend:
ipv4_address: 10.0.0.6
volumes:
- ./app/:/app
api:
build:
context: ./
dockerfile: ./Dockerfile
command: api
ports:
- "8000:8000"
environment:
OPENAPI_GENERATOR: 10.0.0.10:8080
MONGO_IP: 10.0.0.5
FLOWER_PORT: 8080
ADMIN_USER: admin2
ADMIN_PASS: admin
REDIS_URI: redis://:@10.0.0.3:6379
depends_on:
- mongo
- celery
networks:
backend:
ipv4_address: 10.0.0.100
volumes:
- ./app/:/app
workers:
build:
context: ./
dockerfile: ./Dockerfile
command: workers
environment:
OPENAPI_GENERATOR: 10.0.0.10:8080
MONGO_IP: 10.0.0.5
REDIS_URI: redis://:@10.0.0.3:6379
depends_on:
- mongo
- celery
networks:
backend:
ipv4_address: 10.0.0.4
volumes:
- ./app/:/app
mongo:
image: mongo
container_name: mongo-db
volumes:
- ./data/db:/data/db
ports:
- "27017:27017"
restart: unless-stopped
networks:
backend:
ipv4_address: 10.0.0.5
networks:
backend:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.0.0/24