-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mr-karan/docker
WIP: Create Docker release
- Loading branch information
Showing
7 changed files
with
103 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ frontend/yarn.lock | |
|
||
config.toml | ||
node_modules | ||
listmonk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM alpine:latest AS deploy | ||
RUN apk --no-cache add ca-certificates | ||
WORKDIR /listmonk | ||
COPY listmonk . | ||
COPY config.toml.sample config.toml | ||
CMD ["./listmonk"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# NOTE: This docker-compose.yml is meant to be just an example guideline | ||
# on how you can achieve the same. It is not intented to run out of the box | ||
# and you must edit the below configurations to suit your needs. | ||
|
||
version: "3.7" | ||
|
||
x-app-defaults: &app-defaults | ||
restart: unless-stopped | ||
image: listmonk/listmonk:latest | ||
ports: | ||
- "9000:9000" | ||
networks: | ||
- listmonk | ||
|
||
x-db-defaults: &db-defaults | ||
image: postgres:11 | ||
ports: | ||
- "9432:5432" | ||
networks: | ||
- listmonk | ||
environment: | ||
- POSTGRES_PASSWORD=listmonk | ||
- POSTGRES_USER=listmonk | ||
- POSTGRES_DB=listmonk | ||
restart: unless-stopped | ||
|
||
services: | ||
db: | ||
<<: *db-defaults | ||
volumes: | ||
- type: volume | ||
source: listmonk-data | ||
target: /var/lib/postgresql/data | ||
|
||
app: | ||
<<: *app-defaults | ||
depends_on: | ||
- db | ||
|
||
demo-db: | ||
<<: *db-defaults | ||
|
||
demo-app: | ||
<<: *app-defaults | ||
command: [sh, -c, "yes | ./listmonk --install && ./listmonk"] | ||
depends_on: | ||
- demo-db | ||
|
||
networks: | ||
listmonk: | ||
|
||
volumes: | ||
listmonk-data: |