File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
1
# This is a transitional production configuration.
2
- # Redis and celery will be external services in the final production configuration.
3
2
# Traffic or NGINX may or may not be used in the final production configuration
4
3
# but the Django container will not expose its port to the host (there will be more than one container).
5
- version : " 3"
6
4
7
5
services :
8
6
django : &django
@@ -11,8 +9,6 @@ services:
11
9
# This is the most important setting to test the production configuration of Django.
12
10
dockerfile : ./compose/production/django/Dockerfile
13
11
image : insectai/ami_backend
14
- depends_on :
15
- - redis
16
12
env_file :
17
13
- ./.envs/.production/.django
18
14
- ./.envs/.production/.postgres
@@ -21,16 +17,12 @@ services:
21
17
ports :
22
18
- " 5001:5000"
23
19
extra_hosts :
24
- - " db.host.internal:172.16.104.50 "
25
- # - "host.docker.internal:host-gateway "
20
+ - " db:${DATABASE_IP} "
21
+ - " redis:${REDIS_IP} "
26
22
command : /start
27
23
scale : 1 # Can't scale until the load balancer is within the compose config
28
24
restart : always
29
25
30
- redis :
31
- image : redis:6
32
- restart : always
33
-
34
26
celeryworker :
35
27
<< : *django
36
28
scale : 1
You can’t perform that action at this time.
0 commit comments