-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
128 lines (119 loc) · 3.15 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3"
services:
safers-db:
image: kartoza/postgis:latest
environment:
POSTGRES_DBNAME: safers_db
POSTGRES_USER: safers_user
POSTGRES_PASS: safers_pwd
ALLOW_IP_RANGE: 0.0.0.0/0
networks:
- safers
ports:
- "5666:5432"
safers-auth-db:
image: postgres:latest
environment:
POSTGRES_USER: fusionauth_user
POSTGRES_PASSWORD: fusionauth_pwd
healthcheck:
test: "pg_isready -U fusionauth_user"
interval: 5s
timeout: 5s
retries: 5
networks:
- safers
restart: unless-stopped
safers-auth:
image: fusionauth/fusionauth-app:latest
depends_on:
safers-auth-db:
condition: service_healthy
env_file:
- ./auth/.env
environment:
DATABASE_URL: jdbc:postgresql://safers-auth-db:5432/fusionauth
DATABASE_ROOT_USERNAME: fusionauth_user
DATABASE_ROOT_PASSWORD: fusionauth_pwd
DATABASE_USERNAME: fusionauth_user
DATABASE_PASSWORD: fusionauth_pwd
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
FUSIONAUTH_APP_KICKSTART_FILE: /usr/local/fusionauth/kickstart/kickstart.json
FUSIONAUTH_APP_MEMORY: 512M
FUSIONAUTH_APP_RUNTIME_MODE: development
FUSIONAUTH_APP_URL: http://fusionauth:9011
SEARCH_TYPE: database
restart: unless-stopped
volumes:
- ./auth/config:/usr/local/fusionauth/confg
- ./auth/kickstart:/usr/local/fusionauth/kickstart
networks:
- safers
ports:
- "9011:9011"
# safers-broker:
# image: rabbitmq:3-management
# hostname: broker
# # TODO: WILL WANT SOME CONFIG IN DEFINITIONS TO SETUP QUEUES
# # TODO: BUT NOT PWDS, ETC
# # volumes:
# # - ./broker/etc/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json
# # - ./broker/etc/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
# # - ./broker/db:/var/lib/rabbitmq/mnesia/rabbit@safers
# # - ./broker/logs:/var/log/rabbitmq/log
# environment:
# - RABBITMQ_DEFAULT_USER=safers_user
# - RABBITMQ_DEFAULT_PASS=safers_pwd
# networks:
# - safers
# ports:
# - 5672:5672 # internal queue
# - 15672:15672 # management client
safers-server:
build:
context: .
tty: true
env_file:
- .env
environment:
DJANGO_ENVIRONMENT: development
DJANGO_SETTINGS_MODULE: config.settings
ENABLE_DJANGO: 1
working_dir: /home/app/server
volumes:
- ./server:/home/app/server
networks:
- safers
ports:
- "8000:8000" # API
- "8080:8080" # profiling
safers-worker:
build: .
tty: true
env_file:
- .env
environment:
DJANGO_ENVIRONMENT: development
DJANGO_SETTINGS_MODULE: config.settings
ENABLE_RMQ_WORKER: 1
volumes:
- ./server:/home/app/server
networks:
- safers
safers-scheduler:
build: .
env_file:
- .env
environment:
DJANGO_ENVIRONMENT: development
DJANGO_SETTINGS_MODULE: config.settings
ENABLE_CRON: 1
volumes:
- ./server:/home/app/server
- ./scheduler:/home/app/scheduler
networks:
- safers
networks:
safers:
name: safers
driver: bridge