Skip to content

Commit

Permalink
Update env params
Browse files Browse the repository at this point in the history
  • Loading branch information
tejash-jl committed Jun 27, 2023
1 parent bb290c9 commit 61ac6e8
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions services/sample-fusionauth-service/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,26 @@ services:
image: postgres:12.9
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
search:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0
environment:
cluster.name: fusionauth
bootstrap.memory_lock: "true"
discovery.type: single-node
ES_JAVA_OPTS: ${ES_JAVA_OPTS}
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
healthcheck:
test: [ "CMD", "curl", "--fail" ,"--write-out", "'HTTP %{http_code}'", "--silent", "--output", "/dev/null", "http://localhost:9200/" ]
interval: 5s
timeout: 5s
retries: 5
interval: 30s
timeout: 10s
retries: 4
restart: unless-stopped
ulimits:
memlock:
Expand All @@ -35,27 +35,28 @@ services:
depends_on:
db:
condition: service_healthy
search:
es:
condition: service_healthy
environment:
DATABASE_URL: jdbc:postgresql://db:5432/fusionauth
DATABASE_ROOT_USERNAME: ${POSTGRES_USER}
DATABASE_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_USERNAME: ${DATABASE_USERNAME}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
FUSIONAUTH_APP_MEMORY: ${FUSIONAUTH_APP_MEMORY}
DATABASE_ROOT_USERNAME: postgres
DATABASE_ROOT_PASSWORD: postgres
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
FUSIONAUTH_APP_MEMORY: 512M
FUSIONAUTH_APP_RUNTIME_MODE: development
FUSIONAUTH_APP_URL: http://fusionauth:9011
SEARCH_SERVERS: http://search:9200
SEARCH_SERVERS: http://es:9200
SEARCH_TYPE: elasticsearch
FUSIONAUTH_APP_KICKSTART_FILE: /home/kickstart.json
FUSIONAUTH_ISSUER_URL: ${FUSIONAUTH_ISSUER_URL-http://localhost:9011/}
restart: unless-stopped
ports:
- 9011:9011
volumes:
- ./imports/:/home/
- ./${IMPORTS_DIR-imports}/:/home/
fusionauthwrapper:
build: .
build: ${FUSION_WRAPPER_BUILD-.}
ports:
- 3990:3990
environment:
Expand Down

0 comments on commit 61ac6e8

Please sign in to comment.