Add docker files
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM flanaganvaquero/flanawright
|
||||||
|
|
||||||
|
WORKDIR /application
|
||||||
|
COPY flanabot flanabot
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
RUN pip3.10 install -r requirements.txt
|
||||||
|
|
||||||
|
ENV PYTHONPATH=/application
|
||||||
|
|
||||||
|
CMD python3.10 flanabot/main.py
|
||||||
17
docker-compose.yaml
Normal file
17
docker-compose.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
services:
|
||||||
|
flanabot:
|
||||||
|
image: flanaganvaquero/flanabot
|
||||||
|
build: .
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
|
||||||
|
mongodb:
|
||||||
|
image: mongo
|
||||||
|
environment:
|
||||||
|
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
|
||||||
|
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
|
||||||
|
volumes:
|
||||||
|
- mongodata:/data/db
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mongodata:
|
||||||
Reference in New Issue
Block a user