Commit 5e335f1e authored by Alexandre Bulté's avatar Alexandre Bulté

Initial commit

parents
# validata-docker
Dockerfiles for https://git.opendatafrance.net/validata.
## Quickstart
```
git clone https://github.com/abulte/validata-docker
docker-compose up
```
This will bring up both `validata-ui` (`http://localhost:5601`) and `validata-api` (`http://localhost:5600`).
## Environment
`FLASK_ENV` variable is used, it is set by default to `FLASK_ENV=development` for both services.
FROM python:3
EXPOSE 5600
WORKDIR /srv
RUN git clone https://git.opendatafrance.net/validata/validata-core.git
RUN cd validata-core && pip install -e .
RUN git clone https://git.opendatafrance.net/validata/validata-api.git
RUN cd validata-api && pip install -e .
ENV FLASK_APP=validata_api/app.py
ENV FLASK_ENV=development
ENV FLASK_RUN_PORT=5600
WORKDIR validata-api/
CMD ["flask", "run", "--with-threads", "-h", "0.0.0.0"]
version: '3'
services:
api:
build: ./api
ports:
- 5600:5600
ui:
build: ./ui
ports:
- 5601:5601
FROM python:3
EXPOSE 5601
WORKDIR /srv
RUN git clone https://git.opendatafrance.net/validata/validata-core.git
RUN cd validata-core && pip install -e .
RUN git clone https://git.opendatafrance.net/validata/validata-ui.git
RUN cd validata-ui && pip install -e .
ENV FLASK_APP=validata_ui
ENV FLASK_ENV=development
ENV FLASK_RUN_PORT=5601
WORKDIR validata-ui/
CMD ["flask", "run", "--with-threads", "-h", "0.0.0.0"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment