-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
81 lines (72 loc) · 1.84 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# docker compose containers for nginx reverse proxy, shinyproxy, shiny app, flask api, and postgresql database.
version: '3.3'
services:
nginx:
image: nginx:latest
container_name: nginx
restart: always
volumes:
- type: bind
source: ./deploy/nginx/conf.d/apps.conf
target: /etc/nginx/conf.d/apps.conf
- type: bind
source: ./deploy/nginx/html/
target: /var/www/html/
ports:
- 80:80
network_mode: 'host'
shinyproxy:
image: openanalytics/shinyproxy:2.6.0
container_name: shinyproxy
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- type: bind
source: ./deploy/shinyproxy/application.yml
target: /opt/shinyproxy/application.yml
ports:
- 8080:8080
networks:
- net
shiny:
container_name: shiny
build: ./
# command: ["R", "-e", "options('shiny.port'=3838,shiny.host='0.0.0.0');library(lemur);lemur::run_app()"]
ports:
- 3838:3838
networks:
- net
postgres:
image: postgres:latest
container_name: postgres
restart: always
env_file: .env
volumes:
- /db-data/:/var/lib/postgresql/data/
- ./deploy/postgresql/:/data/
- type: bind
source: ./deploy/postgresql/init-db.sh
target: /docker-entrypoint-initdb.d/init-db.sh
- type: bind
source: ./deploy/postgresql/postgresql.conf
target: /etc/postgresql/postgresql.conf
ports:
- 5432:5432
networks:
- net
api:
container_name: api
restart: always
env_file: .env
command: [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
build: ./deploy/api/
volumes:
- type: bind
source: ./deploy/api/docs.html
target: /app/static/docs.html
ports:
- 5000:5000
networks:
- net
networks:
net: