-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
86 lines (81 loc) · 2.3 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3"
networks:
cac:
driver: bridge
services:
#Oauth2 proxy
oauth2-proxy:
container_name: fa-oauth2-proxy
image: quay.io/oauth2-proxy/oauth2-proxy:v7.3.0
command: --config /oauth2-proxy.cfg
ports:
- 3000:3000/tcp
hostname: oauth2-proxy
volumes:
- "./oauth2-proxy.cfg:/oauth2-proxy.cfg"
restart: unless-stopped
networks:
- cac
depends_on:
# - fa-search
# - fa-db
- fusionauth
# Fusion Auth
fa-search:
container_name: fa-search
networks:
- cac
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
environment:
- cluster.name=fusionauth
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=${ES_JAVA_OPTS}"
- discovery.type=single-node
restart: unless-stopped
# ulimits: # Don't work with Gitpod
# memlock:
# soft: -1
# hard: -1
volumes:
- fa-es-data:/usr/share/elasticsearch/data
fusionauth:
container_name: fusionauth
networks:
- cac
image: fusionauth/fusionauth-app:latest
depends_on:
- fa-search
environment:
DATABASE_URL: jdbc:postgresql://fa-db:${FUSIONAUTH_POSTGRES_PORT}/fusionauth
DATABASE_ROOT_USERNAME: ${FUSIONAUTH_POSTGRES_USER}
DATABASE_ROOT_PASSWORD: ${FUSIONAUTH_POSTGRES_PASSWORD}
DATABASE_USERNAME: ${FUSIONAUTH_DATABASE_USER}
DATABASE_PASSWORD: ${FUSIONAUTH_DATABASE_USERNAME}
FUSIONAUTH_SEARCH_ENGINE_TYPE: elasticsearch
FUSIONAUTH_SEARCH_SERVERS: http://fa-search:9200
FUSIONAUTH_URL: http://fusionauth:9011
FUSIONAUTH_API_KEY: ${FUSIONAUTH_API_KEY}
FUSIONAUTH_APP_KICKSTART_FILE: ${FUSIONAUTH_APP_KICKSTART_FILE}
FUSIONAUTH_ADMIN_EMAIL: ${FUSIONAUTH_ADMIN_EMAIL}
FUSIONAUTH_ADMIN_PASSWORD: ${FUSIONAUTH_ADMIN_PASSWORD}
restart: unless-stopped
ports:
- 9011:9011
volumes:
- fa-config:/usr/local/fusionauth/config
- ./kickstart:/usr/local/fusionauth/kickstart
fa-db:
container_name: fa-db
networks:
- cac
image: postgres:12
environment:
- POSTGRES_USER=${FUSIONAUTH_POSTGRES_USER}
- POSTGRES_PASSWORD=${FUSIONAUTH_POSTGRES_PASSWORD}
ports:
- "5436:${FUSIONAUTH_POSTGRES_PORT}"
volumes:
- ./pgdata-fa-db:/var/lib/postgresql/data
volumes:
fa-es-data:
fa-config: