-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-test.yml
62 lines (56 loc) · 1.69 KB
/
docker-compose-test.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
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:
test_gradle_cache:
test_signalc_build_cache:
services:
db:
image: postgres:12
container_name: test_db
volumes:
- postgres_data:/var/lib/postgresql/data
- ./bin/db/:/bin/db/
environment:
POSTGRES_HOST_AUTH_METHOD: trust
signalboost:
image: registry.0xacab.org/team-friendo/signalboost/signalboost:latest
container_name: test_signalboost
env_file: .env.test
environment:
DB_HOST: db
depends_on:
- db
volumes:
- ./.sequelizerc:/signalboost/.sequelizerc
- ./app:/signalboost/app
- ./bin:/signalboost/bin
- ./node_modules:/signalboost/node_modules
- ./package.json:/signalboost/package.json
- ./test:/signalboost/test
- ./yarn.lock:/signalboost/yarn.lock
signalc:
image: registry.0xacab.org/team-friendo/signalboost/signalc-dev:latest
container_name: test_signalc
env_file: .env.test
environment:
DB_HOST: db
GRADLE_USER_HOME: /home/gradle/.gradle
LOG_LEVEL: ${LOG_LEVEL:-error}
SIGNALC_ENV: test
depends_on:
- db
volumes:
- ./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
- ./bin:/signalc/bin
- test_gradle_cache:/home/gradle/.gradle
- test_signalc_build_cache:/signalc/build