mirror of https://github.com/status-im/fathom.git
Create Dockerfile and add example docker-compose.yml
This commit is contained in:
parent
c7c30e25f2
commit
c6f9516ca6
|
@ -0,0 +1,14 @@
|
|||
FROM alpine:latest
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
WORKDIR /app
|
||||
VOLUME ["/app/storage"]
|
||||
CMD ["/app/ana"]
|
||||
|
||||
RUN apk add --update bash ca-certificates && rm -rf /var/cache/apk/*
|
||||
|
||||
RUN mkdir -p /app/storage/sessions && chmod 777 /app/storage
|
||||
ADD ./static /app/static
|
||||
ADD ./views /app/views
|
||||
ADD ./ana /app/ana
|
|
@ -0,0 +1,23 @@
|
|||
ana:
|
||||
image: metalmatze/ana
|
||||
links:
|
||||
- mysql
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- "ANA_DATABASE_NAME=ana"
|
||||
- "ANA_DATABASE_USER=ana"
|
||||
- "ANA_DATABASE_PASSWORD=password01"
|
||||
- "ANA_DATABASE_HOST=tcp(mysql:3306)"
|
||||
- "ANA_SECRET_KEY=TWEn6GXQDx45PZfmJWvyGpXf5M8b94bszgw8JcJWEd6WxgrnUkLatS34GwjPTvZb"
|
||||
|
||||
mysql:
|
||||
image: "mysql:5"
|
||||
ports:
|
||||
- "3306:3306"
|
||||
environment:
|
||||
- "MYSQL_ALLOW_EMPTY_PASSWORD=false"
|
||||
- "MYSQL_DATABASE=ana"
|
||||
- "MYSQL_PASSWORD=password01"
|
||||
- "MYSQL_ROOT_PASSWORD=password01"
|
||||
- "MYSQL_USER=ana"
|
Loading…
Reference in New Issue