forked from attendee-labs/attendee
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.docker-compose.yaml
More file actions
68 lines (61 loc) · 1.59 KB
/
dev.docker-compose.yaml
File metadata and controls
68 lines (61 loc) · 1.59 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
services:
attendee-worker-local:
build: ./
volumes:
- .:/attendee
networks:
- attendee_network
environment:
- POSTGRES_HOST=postgres
- REDIS_URL=redis://redis:6379/5
- DJANGO_SETTINGS_MODULE=attendee.settings.development
command: ["/bin/bash", "-c", "/opt/bin/entrypoint.sh && celery -A attendee worker -l INFO"]
attendee-scheduler-local:
build: ./
volumes:
- .:/attendee
networks:
- attendee_network
environment:
- POSTGRES_HOST=postgres
- REDIS_URL=redis://redis:6379/5
- DJANGO_SETTINGS_MODULE=attendee.settings.development
command: ["/bin/bash", "-c", "/opt/bin/entrypoint.sh && python manage.py run_scheduler"]
attendee-app-local:
build: ./
volumes:
- .:/attendee
networks:
- attendee_network
ports:
- "8000:8000"
environment:
- POSTGRES_HOST=postgres
- REDIS_URL=redis://redis:6379/5
- DJANGO_SETTINGS_MODULE=attendee.settings.development
command: python manage.py runserver 0.0.0.0:8000
postgres:
image: postgres:15.3-alpine
environment:
POSTGRES_DB: attendee_development
POSTGRES_USER: attendee_development_user
POSTGRES_PASSWORD: attendee_development_user
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
networks:
- attendee_network
restart: unless-stopped
redis:
image: redis:7-alpine
networks:
- attendee_network
restart: unless-stopped
volumes:
- redis:/data/redis
networks:
attendee_network:
driver: bridge
volumes:
postgres:
redis: