-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-sc.yml
109 lines (101 loc) · 3.02 KB
/
docker-compose-sc.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
version: '3'
# NOTE: the below directive makes it possible to run tests behind a VPN
# (feel free to comment it out if it breaks anythuing for you!)
networks:
default:
external:
name: localdev
volumes:
postgres_data:
signalc_gradle_cache:
signalc_build_cache:
signalc_sock:
services:
signalc:
image: registry.0xacab.org/team-friendo/signalboost/signalc:dev
container_name: signalc
env_file: .env.dev
environment:
BLOCK_UNSEALED_MESSAGES: 0
SIGNALC_ENV: development
SIGNALC_DRAIN_TIMEOUT: ${SIGNALC_DRAIN_TIMEOUT:-120}
GRADLE_USER_HOME: /home/gradle/.gradle
LOG_LEVEL: ${LOG_LEVEL:-debug}
DEBUG_MODE: ${DEBUG_MODE:-0}
DB_HOST: db
depends_on:
- db
ports:
- 0.0.0.0:5005:5005 # for remote debugger
volumes:
- ./bin:/signalc/bin
- ./signalc/src:/signalc/src
- ./signalc/build.gradle.kts:/signalc/build.gradle.kts
- ./signalc/gradle.properties:/signalc/gradle.properties
- ./signalc/settings.gradle.kts:/signalc/settings.gradle.kts
- ./signalc/migrations:/signalc/migrations
- signalc_gradle_cache:/home/gradle/.gradle
- signalc_build_cache:/signalc/build
- signalc_sock:/signalc/sock
stop_grace_period: ${SIGNALC_STOP_GRACE_PERIOD:-125s}
restart: always
signalboost:
image: registry.0xacab.org/team-friendo/signalboost/signalboost:latest
container_name: signalc_signalboost
depends_on:
- db
entrypoint: /signalboost/bin/entrypoint/app
env_file: .env.dev
environment:
DEFAULT_LANGUAGE: ${DEFAULT_LANGUAGE:-EN}
DB_HOST: db
DEBUG_MODE: ${DEBUG_MODE:-0}
DIAGNOSTICS_CHANNEL_NUMBER: ''
SHOULD_RUN_KEYSTORE_DELETION: 0
SHOULD_RUN_HEALTHCHECKS: 0
NODE_ENV: ${NODE_ENV:-development}
PROJECT_ROOT: ${PWD}
SIGNAL_CLIENT: SIGNALC
SIGNALBOOST_DEV_DB_NAME: sc_signalboost_development
SHARD_COUNT: 1
SOCKET_POOL_SIZE: 8
SIGNALBOOST_VERBOSE_LOG: ${SIGNALBOOST_VERBOSE_LOG:-1}
SUPORT_CHANNEL_NUMBER: ''
REREGISTER_ON_STARTUP: ${REREGISTER_ON_STARTUP:-0}
expose:
- 3000
networks:
- default
ports:
- 0.0.0.0:9229:9229 # for remote debugger
volumes:
- ./.sequelizerc:/signalboost/.sequelizerc
- ./app:/signalboost/app
- ./bin:/signalboost/bin
- ./node_modules:/signalboost/node_modules
- ./package.json:/signalboost/package.json
- ./yarn.lock:/signalboost/yarn.lock
- signalc_sock:/signalboost/sockets/0
db:
image: postgres:12
container_name: signalc_db
ports:
- 0.0.0.0:5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
- ./bin/db/:/bin/db/
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ngrok:
container_name: signalboost_ngrok # todo: this should just be ngrok?
ports:
- 0.0.0.0:4040:4040
networks:
- default
image: wernight/ngrok
links:
- signalboost
env_file: .env.dev
environment:
- NGROK_PORT=signalboost:3000
restart: always