-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (31 loc) · 1.34 KB
/
Dockerfile
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
ARG ANSIBLE_CORE_TAG
FROM willhallonline/ansible:${ANSIBLE_CORE_TAG:-alpine}
ARG VCS_REF
ARG BUILD_DATE
LABEL maintainer="[email protected]" \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.name="LeonStoldt/ghostfolio-installer" \
org.label-schema.description="Ghostfolio installer using ansible inside Docker" \
org.label-schema.url="https://github.com/LeonStoldt/ghostfolio-installer" \
org.label-schema.vcs-url="https://github.com/LeonStoldt/ghostfolio-installer" \
org.label-schema.vendor="Leon Stoldt" \
org.label-schema.docker.cmd="docker run --rm -v $(pwd):/ghostfolio -v /var/run/docker.sock:/var/run/docker.sock ghostfolio-installer" \
net.unraid.docker.icon="https://avatars.githubusercontent.com/u/82473144?s=200"
# Install Docker Compose
RUN apk --no-cache add \
docker-compose
WORKDIR /ansible
COPY ansible /ansible
# ansible variabled which can be overridden
ENV GHOSTFOLIO_DIR=/ghostfolio
ENV POSTGRES_PORT=5432
ENV REDIS_PW="R3DIS_s3cret!"
ENV POSTGRES_DB=ghostfolio-db
ENV POSTGRES_USER=ghostfolio
ENV POSTGRES_PW=postgresPw
ENV ACCESS_TOKEN_SALT=accessTokenSalt
ENV JWT_SECRET=jwtSecret
RUN mkdir $GHOSTFOLIO_DIR && chmod 775 /ghostfolio
CMD ["ansible-playbook", "/ansible/playbooks/install-ghostfolio.yml"]