Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (54 sloc) 1.25 KB
version: '3'
services:
db:
image: postgres:9.6
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: postgres
POSTGRES_PASSWORD:
ports:
- 5432:5432
restart: always
volumes:
- db_data:/var/lib/postgresql/data
search:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
environment:
cluster.name: fusionauth
bootstrap.memory_lock: "true"
ES_JAVA_OPTS: "-Xms256m -Xmx256m"
ports:
- 9200:9200
- 9300:9300
restart: always
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_data:/usr/share/elasticsearch/data
fusionauth:
image: fusionauth/fusionauth-app:latest
depends_on:
- db
- search
environment:
DATABASE_URL: jdbc:postgresql://db:5432/fusionauth
DATABASE_ROOT_USER: postgres
DATABASE_ROOT_PASSWORD: ${POSTGRES_PASSWORD}
DATABASE_USER: fusionauth
DATABASE_PASSWORD: hkaLBM3RVnyYeYeqE3WI1w2e4Avpy0Wd5O3s3
FUSIONAUTH_MEMORY: 256M
FUSIONAUTH_SEARCH_SERVERS: http://search:9200
links:
- db
- search
restart: always
ports:
- 9011:9011
volumes:
- fa_config:/usr/local/fusionauth/config
volumes:
db_data:
es_data:
fa_config: