-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (58 loc) · 1.73 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
networks:
nginx-proxy-manager:
external:
name: nginx-proxy-manager
services:
app:
depends_on:
- ui
build:
context: ./backend
dockerfile: Dockerfile.prod
image: ganslider:lts
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
volumes:
- $PWD/backend:/app
- $PWD/frontend/build:/frontend/public
environment:
- GANSLIDER_DEBUGGING=${GANSLIDER_DEBUGGING}
- PROLIFIC_STUDY_ID=${PROLIFIC_STUDY_ID}
- GANSLIDER_ROOT_DIR=${GANSLIDER_ROOT_DIR}
- GANSLIDER_LOG_DATABASE=${GANSLIDER_LOG_DATABASE}
networks:
- nginx-proxy-manager
ui:
build:
context: ./frontend
dockerfile: Dockerfile.prod
image: ganslider-ui:lts
volumes:
- $PWD/frontend/build/:/ui/build/
- $PWD/frontend/public:/ui/public
- $PWD/frontend/src/:/ui/src/
environment:
- REACT_APP_GANSLIDER_DEBUGGING=${GANSLIDER_DEBUGGING}
- REACT_APP_ROOT_DIR=${GANSLIDER_ROOT_DIR}
- REACT_APP_PROLIFIC_URL=${GANSLIDER_PROLIFIC_CALLBACK}
- PUBLIC_URL=${GANSLIDER_PUBLIC_URL}
mongodb:
image: mongo
volumes:
- $HOME/mongodb/database:/data/db
networks:
- nginx-proxy-manager
ganspace_slider_nginx:
image: nginx
ports:
- 8888:80
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- $PWD/frontend/build:/frontend/public
depends_on:
- app
networks:
- nginx-proxy-manager