forked from camptocamp/terraboard
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parallelized db refreshing and add mutex security
+ code review fixes from camptocamp#177
- Loading branch information
Showing
8 changed files
with
151 additions
and
83 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
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,11 @@ | ||
|
||
UID=$(shell id -u) | ||
GID=$(shell id -g) | ||
|
||
build: | ||
UID="${UID}" GID="${GID}" docker-compose build | ||
|
||
test: | ||
UID="${UID}" GID="${GID}" docker-compose up -d | ||
|
||
all: build test |
File renamed without changes.
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,64 @@ | ||
--- | ||
version: "3.8" | ||
services: | ||
terraboard-dev: | ||
build: | ||
context: ../../ | ||
dockerfile: ./Dockerfile | ||
environment: | ||
AWS_ACCESS_KEY_ID: root | ||
AWS_SECRET_ACCESS_KEY: mypassword | ||
DB_SSLMODE: disable | ||
CONFIG_FILE: config/config.yml | ||
GODEBUG: netdns=go | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
minio: | ||
condition: service_started | ||
volumes: | ||
- ../../static:/static:ro | ||
- ./config.yml:/config/config.yml:ro | ||
ports: | ||
- "8080:8080" | ||
|
||
minio: | ||
image: minio/minio:latest | ||
environment: | ||
MINIO_ROOT_USER: root | ||
MINIO_ROOT_PASSWORD: mypassword | ||
user: "${UID}:${GID}" | ||
expose: | ||
- "9000" | ||
ports: | ||
- "9200:9000" | ||
volumes: | ||
- ../data:/data | ||
command: server /data | ||
|
||
db: | ||
image: postgres:9.5 | ||
environment: | ||
POSTGRES_USER: gorm | ||
POSTGRES_PASSWORD: mypassword | ||
POSTGRES_DB: gorm | ||
volumes: | ||
- tb-data:/var/lib/postgresql/data | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -U postgres"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
|
||
pgadmin: | ||
container_name: pgadmin4_container | ||
image: dpage/pgadmin4 | ||
restart: always | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: admin@admin.com | ||
PGADMIN_DEFAULT_PASSWORD: root | ||
ports: | ||
- "5050:80" | ||
|
||
volumes: | ||
tb-data: {} |
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 @@ | ||
|
||
UID=$(shell id -u) | ||
GID=$(shell id -g) | ||
|
||
build: | ||
UID="${UID}" GID="${GID}" docker-compose build | ||
|
||
test: | ||
UID="${UID}" GID="${GID}" docker-compose up -d | ||
|
||
all: build test |
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