-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlocal.yml
More file actions
118 lines (107 loc) · 2.98 KB
/
local.yml
File metadata and controls
118 lines (107 loc) · 2.98 KB
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
version: '3'
volumes:
open_exploit_database_scraping_local_postgres_data: {}
open_exploit_database_scraping_local_postgres_data_backups: {}
services:
django: &django
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: open_exploit_database_scraping_local_django
container_name: open_exploit_database_scraping_local_django
depends_on:
- postgres
- mailhog
- tor
volumes:
#- /data/sources/:/app/data/sources/
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- '8000:8000'
command: /start
networks:
- backend
- celery
- frontend
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: open_exploit_database_scraping_production_postgres
container_name: open_exploit_database_scraping_local_postgres
volumes:
- open_exploit_database_scraping_local_postgres_data:/var/lib/postgresql/data
- open_exploit_database_scraping_local_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
networks:
- backend
# docs:
# image: open_exploit_database_scraping_local_docs
# container_name: open_exploit_database_scraping_local_docs
# build:
# context: .
# dockerfile: ./compose/local/docs/Dockerfile
# env_file:
# - ./.envs/.local/.django
# volumes:
# - ./docs:/docs:z
# - ./config:/app/config:z
# - ./open_exploit_database_scraping:/app/open_exploit_database_scraping:z
# ports:
# - '9000:9000'
# command: /start-docs
mailhog:
image: mailhog/mailhog:v1.0.0
container_name: open_exploit_database_scraping_local_mailhog
ports:
- "8025:8025"
# tor service
tor:
image: oeds_tor:latest
build:
context: .
dockerfile: ./compose/local/tor/Dockerfile
container_name: oeds_tor
ports:
- "127.0.0.1:9050:9050"
- "127.0.0.1:9051:9051"
networks:
- frontend
# add redis as a message broker
redis:
image: "redis:alpine"
networks:
- celery
# celery worker process -- launches child celery processes equal to the number of available cores
# celeryworker:
# <<: *django
# image: djangoapp_celeryworker:latest
# container_name: djangoapp_celeryworker
# depends_on:
# - redis
# - postgres
# - mailhog
# ports: []
# command: celery -A config.celery_app worker -l info -Q celery
# # celery worker process -- launches child celery processes equal to the number of available cores
# celerybeat:
# <<: *django
# image: saferoutz_local_celerybeat
# container_name: saferoutz_local_celerybeat
# depends_on:
# - redis
# - postgres
# - mailhog
# ports: []
# command: /start-celerybeat
networks:
frontend:
name: djangocog_frontend
backend:
name: djangocog_backend
celery:
name: djangocog_celery