-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlocal.yml
153 lines (142 loc) · 3.58 KB
/
local.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: '3'
volumes:
equest_local_postgres_data: {}
equest_local_postgres_data_backups: {}
equest_local_minio_storage: {}
rabbitmq_data:
services:
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: equest_local_django
container_name: equest_local_django
depends_on:
- postgres
- redis
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "8000:8000"
deploy:
restart_policy:
condition: any
resources:
limits:
cpus: '0.5'
memory: 2G
command: /start
rabbitmq:
image: rabbitmq:3.9.7-management
ports:
- '5672:5672' # AMQP port
- '15672:15672' # HTTP management UI
volumes:
- rabbitmq_data:/var/lib/rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=debug
- RABBITMQ_DEFAULT_PASS=debug
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: equest_production_postgres
container_name: equest_local_postgres
volumes:
- equest_local_postgres_data:/var/lib/postgresql/data
- equest_local_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
# docs:
# image: equest_local_docs
# container_name: equest_local_docs
# build:
# context: .
# dockerfile: ./compose/local/docs/Dockerfile
# env_file:
# - ./.envs/.local/.django
# volumes:
# - ./docs:/docs:z
# - ./config:/app/config:z
# - ./core:/app/core:z
# ports:
# - "9090:9090"
# command: /start-docs
redis:
image: redis:6
container_name: equest_local_redis
ports:
- "6378:6378"
# minio:
# image: minio/minio
# container_name: equest_local_minio_storage
# restart: always
# working_dir: "/minio-image/storage"
# volumes:
# - equest_local_minio_storage:/data
# env_file:
# - ./.envs/.local/.aws
# ports:
# - "9000:9000"
# - "9001:9001"
# deploy:
# restart_policy:
# condition: any
# resources:
# limits:
# cpus: '0.5'
# memory: 2G
# command: server /minio-image/storage --console-address :9001
# createbuckets:
# image: minio/mc
# depends_on:
# - minio
# entrypoint: >
# /bin/sh -c "
# apk add nc &&
# while ! nc -z minio 9000; do echo 'Wait minio to startup...' && sleep 0.1; done; sleep 5 &&
# /usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin;
# if ! /usr/bin/mc ls myminio/learngual-bucket &> /dev/null; then
# /usr/bin/mc mb myminio/learngual-bucket;
# /usr/bin/mc policy download myminio/learngual-bucket;
# fi;
# exit 0;
# "
# deploy:
# restart_policy:
# condition: none
# resources:
# limits:
# cpus: '0.5'
# memory: 2G
# celeryworker:
# <<: *django
# image: equest_local_celeryworker
# container_name: equest_local_celeryworker
# depends_on:
# - redis
# - postgres
# ports: []
# command: /start-celeryworker
# celerybeat:
# <<: *django
# image: equest_local_celerybeat
# container_name: equest_local_celerybeat
# depends_on:
# - redis
# - postgres
# ports: []
# command: /start-celerybeat
# flower:
# <<: *django
# image: equest_local_flower
# container_name: equest_local_flower
# depends_on:
# - redis
# - postgres
# ports:
# - "5555:5555"
# command: /start-flower