-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ko Nagase <[email protected]>
- Loading branch information
Showing
7 changed files
with
93 additions
and
276 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 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,5 +1 @@ | ||
source 'https://rubygems.org' | ||
|
||
# each plugin's native extensions should be added to here | ||
gem "rgeo" | ||
gem "pg", (ENV['GEM_PG_VERSION'] ? "~> #{ENV['GEM_PG_VERSION']}" : "~> 1.2.3") | ||
gem 'puma' |
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,11 @@ | ||
# Copy this file to additional_environment.rb and add any statements | ||
# that need to be passed to the Rails::Initializer. `config` is | ||
# available in this context. | ||
# | ||
# Example: | ||
# | ||
# config.log_level = :debug | ||
# ... | ||
# | ||
|
||
config.logger = Logger.new(STDOUT) |
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,17 @@ | ||
default: &default | ||
adapter: postgis | ||
database: <%= ENV['DB_NAME'] %> | ||
host: <%= ENV['DB_HOST'] %> | ||
username: <%= ENV['DB_USER'] %> | ||
password: <%= ENV['DB_PASS'] %> | ||
port: <%= ENV['DB_PORT'] || 5432 %> | ||
encoding: utf8 | ||
|
||
production: | ||
<<: *default | ||
|
||
test: | ||
<<: *default | ||
|
||
development: | ||
<<: *default |
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,68 +1,28 @@ | ||
version: "3" | ||
|
||
services: | ||
postgis: | ||
image: postgis/postgis:14-3.2 | ||
environment: | ||
POSTGRES_PASSWORD: ${DB_PASS} | ||
POSTGRES_USER: ${DB_USER} | ||
POSTGRES_DB: ${DB_NAME} | ||
volumes: | ||
- postgis:/var/lib/postgresql/data | ||
|
||
gtt: | ||
redmine: | ||
build: | ||
context: ./ | ||
dockerfile: ./Dockerfile | ||
args: | ||
REDMINE_VERSION: 4.2.3 | ||
REDMICA_VERSION: "" | ||
GEM_PG_VERSION: ${GEM_PG_VERSION} | ||
PATCH_STRIP: 1 | ||
PATCH_DIRS: "" | ||
context: . | ||
ports: | ||
- 3000:3000 | ||
environment: | ||
REDMINE_DB_POSTGRES: postgres | ||
REDMINE_DB_USERNAME: ${POSTGRES_USER} | ||
REDMINE_DB_PASSWORD: ${POSTGRES_PASSWORD} | ||
REDMINE_DB_DATABASE: ${POSTGRES_DB} | ||
REDMINE_PLUGINS_MIGRATE: 1 | ||
# Gemfile | ||
GEM_PG_VERSION: ${GEM_PG_VERSION} | ||
# config/configuration.yml | ||
SMTP_ENABLE_STARTTLS_AUTO: ${SMTP_ENABLE_STARTTLS_AUTO} | ||
SMTP_ADDRESS: ${SMTP_ADDRESS} | ||
SMTP_PORT: ${SMTP_PORT} | ||
SMTP_DOMAIN: ${SMTP_DOMAIN} | ||
SMTP_AUTHENTICATION: ${SMTP_AUTHENTICATION} | ||
SMTP_USER_NAME: ${SMTP_USER_NAME} | ||
SMTP_PASSWORD: ${SMTP_PASSWORD} | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./files:/usr/src/redmine/files | ||
- ./plugins:/usr/src/redmine/plugins | ||
- ./public/themes:/usr/src/redmine/public/themes | ||
# Exclude node package and webpack contents folders | ||
- /usr/src/redmine/plugins/redmine_gtt/node_modules | ||
- /usr/src/redmine/plugins/redmine_gtt/assets/javascripts | ||
depends_on: | ||
- postgres | ||
- mapfish-print | ||
restart: always | ||
|
||
postgres: | ||
image: postgis/postgis:13-3.1 | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DB: ${POSTGRES_DB} | ||
volumes: | ||
- postgres:/var/lib/postgresql/data | ||
restart: always | ||
|
||
mapfish-print: | ||
image: camptocamp/mapfish_print:3.28 | ||
ports: | ||
- 8080:8080 | ||
environment: | ||
EXTRA_JARS: /usr/local/tomcat/webapps/ROOT/print-apps/lib | ||
volumes: | ||
- ./mapfish-print-apps:/usr/local/tomcat/webapps/ROOT/print-apps | ||
restart: always | ||
- postgis | ||
|
||
volumes: | ||
gtt: | ||
postgres: | ||
mapfish-print: | ||
postgis: |
Oops, something went wrong.