Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- upgrade to Go 1.22.2 - adding ffmpeg dependency (gulp) - splitting demo and production configurations (production still needs testing) - renaming config files (since the "development" container didn't work out so great) - adding "createOwner" switch for localhost servers - single thread all initialization (including createOwner step) - removing entrypoint.sh because we're now populating starter configs, so the server doesn't have to wait for config.json anymore
- Loading branch information
Showing
9 changed files
with
78 additions
and
120 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
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
# This docker-compose file starts up a Emissary server for | ||
# production use. This file assumes: | ||
# 1) you will configure Emissary using a mongodb database. | ||
# 2) the mongo database exists outside of this Docker config. | ||
# 3) you have configured ENVIRONMENT VARIABLES to point to it. | ||
# | ||
# After installing this server, you will need to run the | ||
# setup tool from another location to configure the server's | ||
# settings and domains | ||
|
||
name: emissary_prod | ||
services: | ||
emissary: | ||
build: | ||
context: . | ||
dockerfile: ./docker/prod-dockerfile | ||
ports: | ||
- "80:80" | ||
- "443:443" |
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,43 +1,58 @@ | ||
version: '3.8' | ||
# This docker-compose file starts up a Emissary server where you | ||
# can "kick the tires" and see how it works. You should probably | ||
# not use this in production. | ||
# | ||
# It defaults to serving one domain "localhost" on port 8080. | ||
name: emissary_demo | ||
|
||
services: | ||
emissary: | ||
|
||
# This is the Emissary server that runs a single "localhost" domain on port 8080. | ||
# It runs on http://localhost:8080 | ||
server: | ||
container_name: emissary_demo_server | ||
build: | ||
context: . | ||
dockerfile: ./docker/Dockerfile | ||
dockerfile: ./docker/demo-dockerfile | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- EMISSARY_CONFIG=file:///data/config/config.json | ||
- WAIT_FOR_CONFIG=1 | ||
depends_on: | ||
- mongodb | ||
- smtp | ||
volumes: | ||
- configdata:/data/config | ||
- config:/data/config | ||
- uploads:/data/uploads | ||
|
||
# The setup tool creates/modifies the server configuration, | ||
# although you probably won't have to use it much for this demo. | ||
# It runs on http://localhost:8888 | ||
setup: | ||
container_name: emissary_demo_setup | ||
build: | ||
context: . | ||
dockerfile: ./docker/Dockerfile | ||
dockerfile: ./docker/demo-dockerfile | ||
ports: | ||
- "8888:8888" | ||
environment: | ||
- EMISSARY_CONFIG=file:///data/config/config.json | ||
command: ["--setup", "--port", "8888"] | ||
depends_on: | ||
- mongodb | ||
- smtp | ||
volumes: | ||
- configdata:/data/config | ||
- config:/data/config | ||
|
||
# This mongo database stores data for the Emissary site. | ||
# You can connect to it using any MongoDB client. | ||
mongodb: | ||
container_name: emissary_demo_database | ||
image: "mongo:latest" | ||
ports: | ||
- "27017:27017" | ||
volumes: | ||
- mongodata:/data/db | ||
smtp: | ||
image: ghcr.io/literalgarage/smtp-logger:latest | ||
ports: | ||
- "8025:8025" | ||
- mongo:/data/db | ||
|
||
volumes: | ||
mongodata: | ||
configdata: | ||
config: | ||
mongo: | ||
uploads: |
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 was deleted.
Oops, something went wrong.
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