-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
52 lines (49 loc) · 1.55 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
# The docker-compose.yml describes all the services in our application. While Docker Compose is best suited for
# multi-container applications, we can use it to simplify our interaction with Docker.
# https://docs.docker.com/compose/overview/
# `docker-compose build` --> Build the image. Do this first.
# `docker images` --> View the image you just built
# `docker-compose run lib <command>` --> <command> and any arguments will be forwarded onto the Dockerfile entrypoint, "yarn".
# `docker-compose run lib test` --> Run tests.
# `docker-compose run --service-ports -d lib test:e2e -- -a` --> Start the styleguidist dev server.
version: '3'
services:
lib:
container_name: tds
build:
context: .
dockerfile: openshift/Dockerfile
ports:
- '6061:6061'
ciboot:
container_name: tds-community
build: .
ports:
- 6061:6061
volumes:
- './:/tds-community/'
e2e:
container_name: tds-community-e2e
build:
context: .
dockerfile: e2e/Dockerfile
entrypoint:
- npm
- run
- test:e2e-direct
- --
- $mode
network_mode: host
ports:
- 6061:6061
depends_on:
- ciboot
volumes:
- './e2e/.:/tds-community/e2e/'
- './scripts/.:/tds-community/scripts/'
- './config/.:/tds-community/config/'
- './packages/.:/tds-community/packages/'
- './shared/.:/tds-community/shared/'
- './.git/.:/tds-community/.git/'
- '${PWD}/lerna.json:/tds-community/lerna.json'
- '${PWD}/babel.config.js:/tds-community/babel.config.js'