-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
docker-compose-test.yml
executable file
·103 lines (97 loc) · 2.4 KB
/
docker-compose-test.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
version: '2.1'
services:
website:
build:
context: .
dockerfile: ./webinterface-Dockerfile
command: bash -c "/usr/local/bin/gunicorn --chdir website --worker-class=gevent --worker-connections=1000 --workers=1 -b :8000 web:APP"
ports:
- "8000:8000"
depends_on:
- mongodb
environment:
- project_env=docker
networks:
- frontend
- backend
volumes:
- ./shared:/website/shared
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
healthcheck:
disable: true
workers_api:
build:
context: .
dockerfile: ./backend-Dockerfile
command: celery -A worker worker --concurrency=1 -l WARNING -Q analyze_url_queue
restart: always
privileged: true
environment:
- project_env=docker
depends_on:
- redis
- mongodb
networks:
- backend
- frontend
volumes:
- /tmp/urlsandbox/logs:/tmp/urlsandbox/logs/
- /tmp/urlsandbox/output:/tmp/urlsandbox/output/
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./shared:/backend/shared
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/root/.docker/config.json
proxy:
build:
context: .
dockerfile: ./proxy-Dockerfile
privileged: true
networks:
- frontend_box
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
box:
build:
context: .
dockerfile: ./box-Dockerfile
networks:
- frontend_box
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
redis:
image: redis
container_name: url-sandbox_redis
command: redis-server --requirepass changeme_927dhgs810d712fxs1
networks:
- backend
- frontend
ports:
- "6379:6379"
mongodb:
build:
context: .
dockerfile: ./mongodb-Dockerfile
ports:
- '27017:27017'
networks:
- backend
- frontend
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
MONGO_INITDB_ROOT_USERNAME: changeme_9620eh26sfvka017fx
MONGO_INITDB_ROOT_PASSWORD: changeme_0cx821ncf7qg17ahx3
command: mongod --auth
networks:
frontend:
internal: false
backend:
internal: true
frontend_box:
internal: false