forked from pdonorio/rest-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
186 lines (165 loc) · 4.87 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
version: '3'
###############################
services:
backend:
# command: sleep infinity
build: ../builds/apiserver
# image: apiserver:rapydo
hostname: restapi
# user: root
# working_dir: /code
environment:
FLASK_APP: run.py
VANILLA_PACKAGE: custom
JWT_APP_SECRETS: ${JWT_APP_SECRETS}
volumes:
# Base code
- ../backend:/code
# JWT tokens secret
- jwt_tokens:${JWT_APP_SECRETS}
# Tests
# - ../tests/backend:/code/test/custom
#################################
# REDIS key/value store
# redqueue:
# image: redis:alpine
# command: redis-server --appendonly yes
# hostname: myqueue
# volumes:
# - redisdata:/data
rabbit:
image: rabbitmq:latest
hostname: rabbit
volumes:
- rabbitdata:/var/lib/rabbitmq
worker:
build: ../builds/celery
# hostname: celworker
user: root
working_dir: /code
environment:
VANILLA_PACKAGE: custom
JWT_APP_SECRETS: ${JWT_APP_SECRETS}
volumes:
# Base code
- ../backend:/code
# JWT tokens secret
- jwt_tokens:/jwt_tokens
# Tests
# - ../tests/backend:/code/test/custom
# command: celery worker -c 1 -A flask_ext.flask_celery.worker.celery_app
#################################
# Database administration
# This docker image let you access sqllite/postgres/mysql
# with a phpmyadmin-like web page
sqladmin:
image: eudatb2stage/sqladminer:latest
##############################
# The proxy which decides to redirect requests
# based on URLs received.
# Redirects /api to backend
# Listens on port 80
# Should implements SSL on 443
proxy:
# image: nginx:1.11-alpine
build: ../builds/sslproxy
hostname: iamaproxy
volumes:
# - ../containers/nginx_proxy:/etc/nginx/conf.d
- ../confs/nginx/production.conf:/etc/nginx/sites-enabled/production
# - ../frontend/felask/static:/static
# SHARED WITH FRONTEND:
# js/css libraries installed via bower
- ../libs/bower_components:/data/frontend/felask/static/bower
# custom css files
- ../css:/data/frontend/felask/static/css/custom
# All the angular blueprints (&& templates)
- ../frontend/js/angular:/data/frontend/felask/static/app/commons
- ../frontend/css:/data/frontend/felask/static/css/base
- ../frontend/fonts:/data/frontend/felask/static/fonts
- ../js:/data/frontend/felask/static/app/custom
- ../frontend/templates:/data/frontend/felask/static/app/templates/common
- ../templates:/data/frontend/felask/static/app/templates/custom
##############################
swagger:
# image: eudatb2stage/swagger-ui:latest
build: ../builds/swaggerui
# image: swagger-ui:rapydo
#######################
# Define here your services
# searchindex:
# image: elasticsearch
# hostname: elastic
# volumes:
# - restangulask_graphbased_elasticdata:/usr/share/elasticsearch/data
# sql:
# image: postgres:9.6
# volumes:
# - sqldata:/var/lib/postgresql/data
# at init time, to create db and set permissions
# - ./confs/pgs_init.sh:/docker-entrypoint-initdb.d/setup-my-schema.sh:ro
# init file can be found at:
# https://github.com/EUDAT-B2STAGE/http-api/blob/master/confs/pgs_init.sh
# environment:
# POSTGRES_USER: myuser
# POSTGRES_PASSWORD: mypassword
# POSTGRES_DBS: mydb1 mydb2 ...
#################################
gdb:
image: neo4j:3.1.3
# ports:
# - 9090:7474
# - 7687:7687
volumes:
- graphdata:/data
environment:
NEO4J_AUTH: neo4j/chooseapassword
# NEO4J_dbms_memory_pagecache_size: 2048M
# NEO4J_dbms_memory_heap_maxSize: 4096M
#################################
# Mongo DB
mongodb:
image: mongo:3.4
volumes:
- mongodata:/data/db
#################################
# SMTP server
# smtp:
# image: namshi/smtp
# environment:
# # GMAIL_USER: -
# # GMAIL_PASSWORD: -
# - SMARTHOST_ADDRESS=mail.cineca.it
# - SMARTHOST_PORT=587
# - SMARTHOST_USER=m.dantonio
# - SMARTHOST_PASSWORD=-
# - SMARTHOST_ALIASES=*.cineca.it
#################################
# FTP
ftp:
# image: stilliard/pure-ftpd:latest
build: ../builds/ftp
volumes:
- pureftpd:/etc/pure-ftpd/passwd
# /etc/ssl/private/ A directory containing a single pure-ftpd.pem file
# with the server's SSL certificates for TLS support. Optional TLS is
# automatically enabled when the container finds this file on startup.
environment:
PUBLICHOST: ${PROJECT_DOMAIN}
ADDED_FLAGS: -d -d
volumes:
jwt_tokens:
driver: local
rabbitdata:
driver: local
# redisdata:
# driver: local
# sqldata:
# driver: local
graphdata:
driver: local
mongodata:
driver: local
pureftpd:
driver: local
# networks: