-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (60 loc) · 1.4 KB
/
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
63
64
65
66
version: '3'
services:
db:
image: postgres:16.1
container_name: temperature_db
restart: always
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
redis:
image: redis:latest
container_name: temperature_redis
ports:
- "6379:6379"
backend:
build: .
container_name: temperature_backend
environment:
- DJANGO_SUPERUSER_PASSWORD=${DJANGO_SUPERUSER_PASSWORD}
volumes:
- .:/app
command: >
sh -c "python manage.py makemigrations
&& python manage.py migrate --noinput
&& python manage.py collectstatic --noinput
&& python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- db
external_api:
container_name: temperature_external_api
image: us.gcr.io/loft-orbital-public/hiring/challenges/ground-software/back-end/satellite-temperature
ports:
- "1000:4000"
celery:
image: celery:5.1.2
container_name: celery
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
command: celery -A loft_temperature_feed_challenge worker -l INFO --uid=nobody
volumes:
- .:/app
depends_on:
- redis
- backend
links:
- redis
- external_api
volumes:
db: