-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker Compose Files & Update Dockerfile to use Alpine Linux
* Update Dockerfile to use Alpine Linux * Add docker-compose files * Modify readme to add docker compose docs. * Update build context * Limit elasticsearch to 1GB memory by default * Drop http.host from docker-compose-es PR: #13
- Loading branch information
1 parent
f3cb341
commit 5b81895
Showing
5 changed files
with
122 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
postgres: | ||
image: postgres | ||
container_name: pgsql-dev | ||
networks: | ||
- redarc | ||
environment: | ||
POSTGRES_PASSWORD: test1234 | ||
volumes: | ||
- pgredarc01:/var/lib/postgresql/data | ||
ports: | ||
- "5432:5432" | ||
|
||
redarc: | ||
build: | ||
context: https://github.com/Yakabuff/redarc.git | ||
dockerfile: Dockerfile | ||
image: redarc | ||
container_name: redarc | ||
networks: | ||
- redarc | ||
environment: | ||
REDARC_API: http://redarc.mysite.org/api/ | ||
SERVER_NAME: redarc.mysite.org | ||
PGPASSWORD: test1234 | ||
ES_ENABLED: 'true' | ||
ES_HOST: http://es.mysite.org | ||
ES_PASSWORD: estest1234 | ||
ports: | ||
- "8080:80" | ||
depends_on: | ||
- postgres | ||
- elasticsearch | ||
|
||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.1 | ||
container_name: es01 | ||
networks: | ||
- redarc | ||
environment: | ||
- discovery.type=single-node | ||
- ELASTIC_PASSWORD=estest1234 | ||
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m" | ||
volumes: | ||
- esredarc01:/usr/share/elasticsearch/data | ||
|
||
networks: | ||
redarc: | ||
driver: bridge | ||
|
||
volumes: | ||
pgredarc01: | ||
driver: local | ||
esredarc01: | ||
driver: local |
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,40 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
postgres: | ||
image: postgres | ||
container_name: pgsql-dev | ||
networks: | ||
- redarc | ||
environment: | ||
POSTGRES_PASSWORD: test1234 | ||
volumes: | ||
- pgredarc01:/var/lib/postgresql/data | ||
ports: | ||
- "5432:5432" | ||
|
||
redarc: | ||
build: | ||
context: https://github.com/Yakabuff/redarc.git | ||
dockerfile: Dockerfile | ||
image: redarc | ||
container_name: redarc | ||
networks: | ||
- redarc | ||
environment: | ||
REDARC_API: http://redarc.mysite.org/api/ | ||
SERVER_NAME: redarc.mysite.org | ||
PGPASSWORD: test1234 | ||
ports: | ||
- "8080:80" | ||
depends_on: | ||
- postgres | ||
|
||
networks: | ||
redarc: | ||
driver: bridge | ||
|
||
volumes: | ||
pgredarc01: | ||
driver: local |
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