This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-prod.yaml
100 lines (93 loc) · 2.52 KB
/
docker-compose-prod.yaml
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
version: '3.7'
services:
redis:
container_name: redis_uptime
image: 'redis:5.0.5'
ports:
- "127.0.0.1:26379:6379"
volumes:
- redisdata_uptime:/data
server:
build:
context: .
dockerfile: Dockerfile-dev
cache_from:
- voteamerica/uptime-ci-cache:latest
image: voteamerica/uptime-ci-cache:latest
entrypoint: wait-for-it -t 45 postgres:5432 redis:6379 --
command: watchmedo auto-restart --directory /app/ --pattern=*.yml --recursive -- python manage.py runserver 0.0.0.0:8000
volumes:
- ./app:/app:cached
ports:
- "9901:8000"
environment:
- SECRET_KEY=abcd
- DJANGO_SETTINGS_MODULE=app.settings
- SELENIUM_URL=http://selenium:4444/wd/hub
- ALLOWED_HOSTS=*
- DEBUG=True
- DD_AGENT_HOST=ddagent
- DD_DOGSTATSD_PORT=3333
env_file:
- .env
- .env-prod
depends_on:
# - postgres
- redis
beat:
image: voteamerica/uptime-ci-cache:latest
entrypoint: wait-for-it -t 45 postgres:5432 redis:6379 --
command: watchmedo auto-restart --directory /app/ --pattern=*.py --recursive -- python -m celery -A app.celery_beat beat --scheduler redbeat.RedBeatScheduler
volumes:
- ./app:/app
environment:
- SECRET_KEY=abcd
- DJANGO_SETTINGS_MODULE=app.settings
- SELENIUM_URL=http://selenium:4444/wd/hub
- ALLOWED_HOSTS=*
- DEBUG=True
- DD_AGENT_HOST=ddagent
- DD_DOGSTATSD_PORT=3333
env_file:
- .env
- .env-prod
depends_on:
# - postgres
- redis
worker:
image: voteamerica/uptime-ci-cache:latest
entrypoint: wait-for-it -t 45 postgres:5432 redis:6379 selenium:4444 --
command: watchmedo auto-restart --directory /app/ --patterns='*.py;*.yml' --recursive -- python -m celery -A app.celery_app worker -Q default
volumes:
- ./app:/app
environment:
- SECRET_KEY=abcd
- DJANGO_SETTINGS_MODULE=app.settings
- SELENIUM_URL=http://selenium:4444/wd/hub
- ALLOWED_HOSTS=*
- DEBUG=True
- DD_AGENT_HOST=ddagent
- DD_DOGSTATSD_PORT=3333
env_file:
- .env
- .env-prod
depends_on:
# - postgres
- redis
- beat
- selenium
selenium:
image: selenium/standalone-chrome:3.141.59
ports:
- "4444:4444"
shm_size: '2gb'
echo:
image: voteamerica/uptime-ci-cache:latest
command: python -m echo
volumes:
- ./app/echo.py:/app/echo.py
ports:
- "13333:3333"
volumes:
pgdata_uptime:
redisdata_uptime: