Skip to content

Commit

Permalink
Removed the seperate frontend Dockerfile, we always include it
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderisbestok committed Jan 4, 2024
1 parent 0deb3c5 commit 6ffb1cf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 37 deletions.
2 changes: 1 addition & 1 deletion MailerQ-Server-Frontend/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/mailerq-packages.gpg] ht
RUN apt-get update && apt-get install -y mailerq-server mailerq-frontend && rm -rf /var/lib/apt/lists/*

# copy our entry script to the machine
COPY ../MailerQ-Server/mq-entry.sh /usr/bin/mq-entry.sh
COPY mq-entry.sh /usr/bin/mq-entry.sh

# run MailerQ server
ENTRYPOINT ["/usr/bin/mq-entry.sh"]
Expand Down
25 changes: 0 additions & 25 deletions MailerQ-Server/Dockerfile

This file was deleted.

11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ To use the Docker images, you need a MailerQ license key. If you already have a
The easiest way to run MailerQ for the first time is to use our example [docker-compose.yaml](#docker-compose), as this includes the required RabbitMQ and MySQL instances and a minimal configuration file.

### Docker Compose
An example `docker-compose.yaml` is provided in the [docker-compose](https://github.com/CopernicaMarketingSoftware/mailerq-server-docker/tree/main/docker-compose) folder. Next to the docker-compose file, you'll find a minimal config that works out of the box with the example. The docker-compose is based on the MailerQ-Server-Frontend image, which makes the MailerQ management console available on [localhost:8080](http://localhost:8080).
An example `docker-compose.yaml` is provided in the [docker-compose](https://github.com/CopernicaMarketingSoftware/mailerq-server-docker/tree/main/docker-compose) folder. Next to the docker-compose file, you'll find a minimal config that works out of the box with the example. The docker-compose is based on the MailerQ-Server image, which makes the MailerQ management console available on [localhost:8080](http://localhost:8080).

To run docker-compose, you need to set the environment variable `LICENSE_KEY` on your host system with a valid MailerQ [license](#license).
To run docker-compose, you need to set the environment variable `MQ_LICENSE_KEY` on your host system with a valid MailerQ [license](#license).

### Docker File
If you want to use the MailerQ images without using the docker-compose file, you need to make RabbitMQ and MySQL instances available for MailerQ.
Expand Down Expand Up @@ -42,13 +42,6 @@ www-auth: hardcoded://mailerq:mailerq
A requirement, next to the config file, is the MailerQ license key or file. You can either mount an existing license file or give the `LICENSE_KEY` environment variable to the Dockerfile so it can generate a license.

#### Example
##### Without Management Console
```bash
docker build ./MailerQ-Server/ -t mailerq-server
docker run -e LICENSE_KEY=<your_mailerq_license_key> -v /path/to/minimal-config.txt:/etc/mailerq/config.txt mailerq-server
```

##### With Management Console
```bash
docker build ./MailerQ-Server-Frontend/ -t mailerq-server-frontend
docker run -e LICENSE_KEY=<your_mailerq_license_key> -v /path/to/minimal-config.txt:/etc/mailerq/config.txt mailerq-server
Expand Down
4 changes: 2 additions & 2 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ services:
container_name: mailerq

# build the Dockerfile in the mailerq directory
build: ../MailerQ-Server-Frontend/
build: ../

# pass on the MailerQ license key
environment:
- LICENSE_KEY=${LICENSE_KEY}
- LICENSE_KEY=${MQ_LICENSE_KEY}

# open up the port for the webinterface
ports:
Expand Down
File renamed without changes.

0 comments on commit 6ffb1cf

Please sign in to comment.