-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.84 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
name: eventyay-next
services:
web:
build: ./app
platform: linux/amd64
container_name: eventyay-next-web
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./app/eventyay:/usr/src/app/eventyay
- /usr/src/app/eventyay/static.dist
- /usr/src/app/eventyay/static/video
- /usr/src/app/eventyay/static/schedule-editor
- /usr/src/app/eventyay/webapp/video/node_modules
- /usr/src/app/eventyay/webapp/schedule-editor/node_modules
- /usr/src/app/eventyay/webapp/schedule/node_modules
- /usr/src/app/eventyay/webapp/webcheckin/node_modules
ports:
- 8000:8000
env_file:
- ./.env.dev
depends_on:
- db
- redis
worker:
build: ./app
platform: linux/amd64
container_name: eventyay-next-worker
entrypoint: celery -A eventyay worker -l info
volumes:
- ./app/eventyay:/usr/src/app/eventyay
- /usr/src/app/eventyay/static.dist
- /usr/src/app/eventyay/static/video
- /usr/src/app/eventyay/static/schedule-editor
- /usr/src/app/eventyay/webapp/video/node_modules
- /usr/src/app/eventyay/webapp/schedule-editor/node_modules
- /usr/src/app/eventyay/webapp/schedule/node_modules
- /usr/src/app/eventyay/webapp/webcheckin/node_modules
env_file:
- ./.env.dev
environment:
- MPLCONFIGDIR=/tmp/matplotlib
depends_on:
- db
- redis
redis:
image: redis:latest
platform: linux/amd64
container_name: eventyay-next-redis
restart: unless-stopped
volumes:
- rd:/data
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
db:
image: postgres:15
platform: linux/amd64
container_name: eventyay-next-db
volumes:
- postgres_data_dev:/var/lib/postgresql/data/
env_file:
- ./.env.dev
volumes:
postgres_data_dev:
rd: