-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 903 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 903 Bytes
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
version: "3"
services:
db:
container_name: db
image: redis:6.2.4-alpine
volumes:
- ./redis_data:/data
expose:
- 6379
command: "redis-server --port 6379 --appendonly yes"
backend:
container_name: backend
build: ./backend
depends_on:
- db
links:
- db
environment:
- PORT=5000
- gpu=${gpu:-false}
volumes:
- ./backend/src:/backend/src
frontend:
container_name: frontend
build: ./frontend
volumes:
- ./frontend/src:/app/src
- ./frontend/public:/app/public
- ./frontend/node_modules:/app/node_modules
nginx:
container_name: web
image: nginx
depends_on:
- backend
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- 80:80/tcp
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"