This repository was 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
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
128 lines (120 loc) · 3.27 KB
/
docker-compose.yaml
File metadata and controls
128 lines (120 loc) · 3.27 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
119
120
121
122
123
124
125
126
127
128
version: '3.7'
services:
postgres:
container_name: postgres_uptime
image: postgres:13.1
environment:
- POSTGRES_DB=uptime
- POSTGRES_PASSWORD=uptime
ports:
- "15432:5432"
volumes:
- pgdata_uptime:/var/lib/postgresql/data
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
- DATABASE_URL=postgres://postgres:uptime@postgres:5432/uptime
- SELENIUM_URL=http://selenium:4444/wd/hub
- ALLOWED_HOSTS=*
- DEBUG=True
- DD_AGENT_HOST=ddagent
- DD_DOGSTATSD_PORT=3333
env_file:
- .env
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
- DATABASE_URL=postgres://postgres:uptime@postgres:5432/uptime
- SELENIUM_URL=http://selenium:4444/wd/hub
- ALLOWED_HOSTS=*
- DEBUG=True
- DD_AGENT_HOST=ddagent
- DD_DOGSTATSD_PORT=3333
env_file:
- .env
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
- DATABASE_URL=postgres://postgres:uptime@postgres:5432/uptime
- SELENIUM_URL=http://selenium:4444/wd/hub
- ALLOWED_HOSTS=*
- DEBUG=True
- DD_AGENT_HOST=ddagent
- DD_DOGSTATSD_PORT=3333
env_file:
- .env
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"
# ddagent:
# image: datadog/agent
# environment:
# - DD_APM_ENABLED=true
# - DD_BIND_HOST=0.0.0.0
# - DD_LOG_LEVEL=CRITICAL
# - DATADOG_ENV=local
# - DATADOG_SERVICE_NAME=local
# - DD_TAGS='env:local'
# expose:
# - "8125/udp"
# - "8126"
# ports:
# - "8125:8125/udp"
# - "8126:8126"
# env_file:
# - .env
volumes:
pgdata_uptime:
redisdata_uptime: