-
Notifications
You must be signed in to change notification settings - Fork 438
/
docker-compose.yml
68 lines (64 loc) · 1.81 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
# https://docs.docker.com/compose/compose-file/compose-file-v3/
version: "3.9"
services:
# Isso server should always reflect production image
isso-server:
image: isso
container_name: isso-server
build:
context: .
dockerfile: Dockerfile
# No need to set entrypoint, image already provides CMD
#command: /isso/bin/isso -c /config/isso.cfg run
environment:
ISSO_SETTINGS: "/config/isso-dev.cfg"
# If needed, production docker image can also be exposed for non-docker
# unit/integration testing
#ports:
# - 127.0.0.1:8080:8080
expose:
- 8080
networks:
test-net:
# Also make available under http://isso-dev.local and localhost:
aliases:
- isso-dev.local
- localhost
volumes:
- ./db:/db/
- type: bind
source: ./contrib/isso-dev.cfg
target: /config/isso-dev.cfg
volume:
nocopy: true
# Jest and puppeteer end-to-end integration test runner
isso-client:
image: isso-js-testbed
container_name: isso-client
build:
context: .
dockerfile: docker/Dockerfile-js-testbed
environment:
ISSO_ENDPOINT: "http://isso-dev.local:8080"
# Command may also run from outside docker compose, e.g.:
# $ docker run isso-js-testbed [mount, networks, ...] npm run test-integration
#command: npm run test-integration
networks:
- test-net
# Bind-mounts, see:
# https://docs.docker.com/compose/compose-file/compose-file-v3/#long-syntax-3
volumes:
- type: bind
source: ./package.json
target: /src/package.json
volume:
nocopy: true
- type: bind
source: ./isso/js/
target: /src/isso/js/
volume:
nocopy: true
depends_on:
- isso-server
networks:
test-net: