Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
97fc2d6e
Commit
97fc2d6e
authored
Nov 24, 2016
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first docker compose script for future mysql db (TODO add a doors container to this config too)
parent
7c3a74ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
10 deletions
+47
-10
README.md
README.md
+17
-0
steps.md
setup/dockers/2-create_flask_container/steps.md
+0
-10
cheatsheet.md
setup/dockers/cheatsheet.md
+5
-0
docker-compose.yml
setup/dockers/docker-compose.yml
+25
-0
No files found.
README.md
View file @
97fc2d6e
...
@@ -39,6 +39,23 @@ The form server is now accessible locally on `127.0.0.1:9090/regcomex`
...
@@ -39,6 +39,23 @@ The form server is now accessible locally on `127.0.0.1:9090/regcomex`
(the default ROUTE_PREFIX is /regcomex, but TODO can be changed in config file)
(the default ROUTE_PREFIX is /regcomex, but TODO can be changed in config file)
#### Running via docker
Prerequisites:
-
`docker`
-
`docker-compose`
(>= v. 1.7.0)
```
cd setup/dockers
docker build flask_ispcif_light/ -t flask_ispcif_light:latest
docker run -p 9090 --name comex_flask_test flask_ispcif_light
# run the app + mysql (TODO actually use mysql!)
docker-compose up
```
#### Running in prod
#### Running in prod
Secondly we ask nginx to reverse-proxy our app
Secondly we ask nginx to reverse-proxy our app
...
...
setup/dockers/2-create_flask_container/steps.md
deleted
100644 → 0
View file @
7c3a74ac
```
bash
docker build flask_ispcif_light/
-t
flask_ispcif_light:latest
docker run
-p
9090
--name
comex_flask_test flask_ispcif_light
#docker run -it -p 9090 --name comex_flask_test flask_ispcif_light
# check ports redirection
docker inspect comex_flask_test | jq
'.[0].NetworkSettings'
```
setup/dockers/cheatsheet.md
0 → 100644
View file @
97fc2d6e
```
# check ports redirection
# docker inspect comex_flask_test | jq '.[0].NetworkSettings'
# docker exec -it comex_flask_test bash
```
setup/dockers/docker-compose.yml
0 → 100644
View file @
97fc2d6e
# NB this config assumes we have already built flask_ispcif_light
version
:
'
2'
services
:
mysql
:
image
:
mysql
environment
:
-
MYSQL_ROOT_PASSWORD=very-safe-pass
flask_ispcif_light
:
# todo simplify path
image
:
flask_ispcif_light
environment
:
-
HOST=0.0.0.0
# will bind the server to this address
-
DEBUG_FLAG=true
ports
:
-
"
9090:32790"
# volumes:
# - .:/code
depends_on
:
-
mysql
# - doors
# doors:
# image: doors
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment