diff options
| -rw-r--r-- | Dockerfile | 14 | ||||
| -rw-r--r-- | compose.yml | 54 |
2 files changed, 68 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..30d7be6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM alpine:3.22 + +RUN apk add python3 py3-pip + +RUN apk add build-base mariadb-connector-c-dev python3-dev + +COPY ./example-acit-list-projects.sh /usr/lib/acit-list-trackers + +RUN --mount=type=bind,source=.,target=/build \ + cd /build && pip install --break-system-packages --root-user-action ignore . + +CMD acit-web + + diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..95fa6d0 --- /dev/null +++ b/compose.yml @@ -0,0 +1,54 @@ +version: '3' + +networks: + backend: + +services: + web: + image: acit + command: acit-web + ports: 8080:8080 + environment: + - ACIT_IMAP_USER=bugs@example.com + - ACIT_IMAP_PASS=SuperSecurePassword + - ACIT_IMAP_SERVER=mail.example.com + - ACIT_IMAP_PORT=993 + - ACIT_IMAP_POOL_SIZE=4 + + - ACIT_SMTP_USER=bugs@example.com + - ACIT_SMTP_PASS=SuperSecurePassword + - ACIT_SMTP_SERVER="mail.example.com" + - ACIT_SMTP_PORT=0 + + - MYSQL_USER=acit + - MYSQL_PASSWORD=AnotherSecurePassword + - MYSQL_DATABASE=acit + - MYSQL_HOST=localhost + + - ACIT_MAIL_NAME=bugs + - ACIT_MAIL_DOMAIN=example.com + #- ACIT_MAIL_USES_ALIASES=true # uncomment to enable + - ACIT_HOME_REDIRECT=about:blank + + volumes: + - ./acit-list-trackers:/usr/lib/acit-list-trackers + networks: + - backend + depends_on: + - database + + database: + image: yobasystems/alpine-mariadb + volumes: + - ./database:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=supersecurepassword + - MYSQL_USER=acit + - MYSQL_PASSWORD=AnotherSecurePassword + - MYSQL_DATABASE=acit + networks: + - backend + + + + |
