forked from tl-its-umich-edu/remote-office-hours-queue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·54 lines (48 loc) · 1.21 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
---
version: '3.4'
services:
web:
build:
context: src
environment:
- ALLOWED_HOSTS=*
- DEBUG=True
- DATABASE_URL=postgresql://admin:admin_pw@database/admin
ports:
- 8003:8001
volumes:
- ./src:/usr/src/app:z
command: "python -m uvicorn officehours.asgi:application --host=0.0.0.0 --port=8001 --reload"
depends_on:
- database
- redis
- webpack_watcher
database:
image: postgres:14.7-alpine
environment:
- POSTGRES_USER=admin
- POSTGRES_DB=admin
- POSTGRES_PASSWORD=admin_pw
volumes:
- officehours-postgres-data:/var/lib/postgresql/data
redis:
image: redis:7
command: redis-server --stop-writes-on-bgsave-error no --save ""
# This is to simulate an Openshift container with no write permission except to /tmp
read_only: true
tmpfs:
- /tmp
volumes:
- officehours-redis-ro:/data:ro
webpack_watcher:
build:
context: src
target: node-webpack
command: npm run watch
volumes:
- ./src:/usr/src/app:z
- /usr/src/app/node_modules/
volumes:
officehours-postgres-data:
officehours-redis-ro: