-
Notifications
You must be signed in to change notification settings - Fork 2
/
parallel-docker-compose.yml
62 lines (56 loc) · 2.26 KB
/
parallel-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
# Copyright 2023
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3.1'
services:
parallel_worker:
# Parallel celery worker
restart: always
build:
context: ./
dockerfile: Dockerfile.flask
image: traptagger:1.1.3
volumes:
- ./:/code/
- ./wildbook-ia/wbia:/code/wbia
environment:
- PYTHONPATH=/code
- FLASK_APP=/code/TrapTagger.py
- REDIS_IP=${REDIS_IP}
- DATABASE_NAME=${DATABASE_NAME}
- HOST_IP=${HOST_IP}
- DNS=${DNS}
- DATABASE_SERVER=${DATABASE_SERVER}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- REGION_NAME=${REGION_NAME}
- SECRET_KEY=${SECRET_KEY}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- BRANCH=${BRANCH}
- SG_ID=${SG_ID}
- PUBLIC_SUBNET_ID=${PUBLIC_SUBNET_ID}
- PRIVATE_SUBNET_ID=${PRIVATE_SUBNET_ID}
- TOKEN=${TOKEN}
- PARALLEL_AMI=${PARALLEL_AMI}
- KEY_NAME=${KEY_NAME}
- QUEUE=${QUEUE}
- WORKER_NAME=${WORKER_NAME}
- MAIN_GIT_REPO=${MAIN_GIT_REPO}
- MONITORED_EMAIL_ADDRESS=${MONITORED_EMAIL_ADDRESS}
- BUCKET=${BUCKET}
- IAM_ADMIN_GROUP=${IAM_ADMIN_GROUP}
- AWS_S3_DOWNLOAD_ACCESS_KEY_ID=${AWS_S3_DOWNLOAD_ACCESS_KEY_ID}
- AWS_S3_DOWNLOAD_SECRET_ACCESS_KEY=${AWS_S3_DOWNLOAD_SECRET_ACCESS_KEY}
command: celery -A app.celery worker -E -n ${WORKER_NAME} -Q ${QUEUE} -Ofair --concurrency=${CONCURRENCY} --loglevel=info
networks:
- my-network
networks:
my-network: