forked from Zendro-dev/ZendroStarterPack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (75 loc) · 1.89 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
version: "3.2"
services:
sdb_postgres:
build:
context: .
dockerfile: Dockerfile.postgres
volumes:
- sdb_db_data:/var/lib/postgresql/data
ports:
- 5432:5432
sdb_science_db_graphql_server:
depends_on:
- sdb_postgres
build:
context: ./graphql-server
dockerfile: Dockerfile.graphql_server
ports:
- 3000:3000
environment:
- PORT=3000
- NODE_ENV=production
# Ensure there is enough room to upload large files and store them
# temporarily in the host system's tempdir:
volumes:
- /tmp:/tmp
# Await POSTGRES role and DB creation, migrate schema, then start web
# server:
command:
- ./migrateDbAndStartServer.sh
sdb_nginx:
depends_on:
- sdb_postgres
- sdb_science_db_graphql_server
build:
context: ./single-page-app
dockerfile: Dockerfile.nginx
ports:
- 8080:80
sdb_minio:
image: minio/minio:RELEASE.2019-02-20T22-44-29Z
volumes:
- sdb_minio_data:/data
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
#sdb_science_db_shiny:
#bpbuild:
#bp context: .
#bp dockerfile: Dockerfile.shiny
#bpenvironment:
#bp PORT: 3838
#bpports:
#bp - "3838:3838"
#bpvolumes:
#bp - sdb_shiny_data:/srv/shiny-server
#bpcommand:
#bp - /bin/sh
#bp - -c
#bp - |
#bp cp /opt/helloWorld.Rmd /srv/shiny-server
#bp /usr/bin/shiny-server.sh
#labels:
# traefik.enable: "true"
# traefik.backend: "science_db_shiny"
# traefik.frontend.rule: "Host:shiny.reconstructdb.org"
# #traefik.frontend.auth.basic: 'testuser:$$apr1$$QBCuO60R$$pJIFSe2x8L/cTbOBOvoOt1'
# traefik.docker.network: "reverseproxy"
# traefik.port: "3838"
volumes:
sdb_db_data:
sdb_minio_data:
#sdb_shiny_data: