-
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.
Fix outdated docker local dev suite (#2200)
* deps(dev): Upgrade golang to 1.20 in dev Dockerfile * feat(dev): Make dev's config.toml conform to prod's * fix(dev): Use dev db credentials in config * feat(dev): Add support for devcontainer * docs: How to set up dev env in different ways
- Loading branch information
Showing
5 changed files
with
44 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "listmonk", | ||
"dockerComposeFile": "../dev/docker-compose.yml", | ||
"service": "backend", | ||
"workspaceFolder": "/app", | ||
"forwardPorts": [9000], | ||
"postStartCommand": "make dist && ./listmonk --install --idempotent --yes --config dev/config.toml" | ||
} |
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 |
---|---|---|
@@ -1,28 +1,24 @@ | ||
# IMPORTANT: This configuration is meant for development only | ||
### DO NOT USE IN PRODUCTION ### | ||
|
||
[app] | ||
# Interface and port where the app will run its webserver. The default value | ||
# of localhost will only listen to connections from the current machine. To | ||
# listen on all interfaces use '0.0.0.0'. To listen on the default web address | ||
# port, use port 80 (this will require running with elevated permissions). | ||
address = "0.0.0.0:9000" | ||
|
||
# BasicAuth authentication for the admin dashboard. This will eventually | ||
# be replaced with a better multi-user, role-based authentication system. | ||
# IMPORTANT: Leave both values empty to disable authentication on admin | ||
# only where an external authentication is already setup. | ||
admin_username = "listmonk" | ||
admin_password = "listmonk" | ||
|
||
# Database. | ||
[db] | ||
host = "db" | ||
port = 5432 | ||
user = "listmonk-dev" | ||
password = "listmonk-dev" | ||
|
||
# Ensure that this database has been created in Postgres. | ||
database = "listmonk-dev" | ||
|
||
ssl_mode = "disable" | ||
max_open = 25 | ||
max_idle = 25 | ||
max_lifetime = "300s" | ||
|
||
# Optional space separated Postgres DSN params. eg: "application_name=listmonk gssencmode=disable" | ||
params = "" |
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