This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
forked from cubimedrub/macworp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-test.docker-compose.yaml
66 lines (66 loc) · 2.01 KB
/
deploy-test.docker-compose.yaml
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
# Use in addition to docker-compose.yaml to test the deployment with unicorn and NginX as reverse proxy, see Readme.md
version: '2.2'
services:
backend_1: &migrating_backend
image: nf-cloud/backend:dev
volumes:
- ./nf_cloud_backend:/home/app/nf_cloud_backend
- ./nf_cloud_backend/entrypoint.sh:/home/app/entrypoint.sh
- ./deploy_test_uploads:/home/app/uploads
# Pass the local config
- ./config.docker-compose.yaml:/home/app/nf_cloud.local.config.yaml:ro
environment:
OAUTHLIB_INSECURE_TRANSPORT: 1
NF_HOSTNAME: ${NF_HOSTNAME:-localhost}
NF_FUSIONAUTH_PORT: ${NF_FUSIONAUTH_PORT:-9011}
RUN_MIGRATION: "true"
MIGRATION_DB_HOSTNAME: psql
PYTHONUNBUFFERED: "true"
command: ["serve", "--gunicorn"]
depends_on:
psql:
condition: service_healthy
rabbitmq:
condition: service_healthy
backend_2: &backend
<<: *migrating_backend
environment:
RUN_MIGRATION: "false"
OAUTHLIB_INSECURE_TRANSPORT: 1
NF_HOSTNAME: ${NF_HOSTNAME:-localhost}
NF_FUSIONAUTH_PORT: ${NF_FUSIONAUTH_PORT:-9011}
PYTHONUNBUFFERED: "true"
depends_on:
- backend_1
backend_3: *backend
backend_4: *backend
frontend:
image: nf-cloud/frontend:dev
environment:
NF_CLOUD_BACKEND_BASE_URL: https://${NF_HOSTNAME:-localhost}:16160
NF_CLOUD_BACKEND_WS_URL: https://${NF_HOSTNAME:-localhost}:16160
NF_CLOUD_FRONTEND_INTERFACE: 0.0.0.0
nginx:
image: nginx:stable
ports:
- 16160:16160
- 16161:16161
environment:
NF_HOSTNAME: ${NF_HOSTNAME}
volumes:
- ./docker/nginx/certificate-creation.sh:/docker-entrypoint.d/99-certificates.sh:ro
- ./docker/nginx/high-available.conf.template:/etc/nginx/templates/default.conf.template:ro
depends_on:
- backend_1
- backend_2
- backend_3
- backend_4
- frontend
- fusionauth
links:
- backend_1
- backend_2
- backend_3
- backend_4
- frontend
- fusionauth