-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstaging.yml
51 lines (45 loc) · 947 Bytes
/
staging.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
version: "3"
networks:
redis-network:
services:
django: &django
build:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: 648240308375.dkr.ecr.ap-northeast-2.amazonaws.com/django
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /start
depends_on:
- redis
links:
- redis
nginx:
build:
context: ./compose/production/nginx
dockerfile: ./Dockerfile
image: 648240308375.dkr.ecr.ap-northeast-2.amazonaws.com/nginx
ports:
- "80:80"
depends_on:
- django
links:
- django
redis:
image: redis:5.0
ports:
- "6379:6379"
command: redis-server --appendonly yes
celeryworker:
<<: *django
command: /start-celeryworker
depends_on:
- redis
links:
- redis
networks:
- redis-network
flower:
<<: *django
command: /start-flower