Skip to content

Commit

Permalink
Merge pull request #43 from rknj/windows-conf
Browse files Browse the repository at this point in the history
Windows configuration
  • Loading branch information
Fgerthoffert authored Sep 26, 2019
2 parents f245a40 + c8ebd3b commit 833d396
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,51 @@ Once the directory is created, you can start the environment:
> docker-compose up -d # Run the containers in deamon mode (you can remove -d to see log messages)
```

#### Specific Windows configuration

On Windows, the configuration file below has to be used and two additional steps are needed.
- Step 1: Select the local drive to be shared (see https://docs.docker.com/docker-for-windows/#shared-drives)
- Step 2: Enable the paths conversion typing the following command line `set COMPOSE_CONVERT_WINDOWS_PATHS=1` (see https://docs.docker.com/compose/reference/envvars/#compose_convert_windows_paths)

```yaml
version: '3.7'

services:
jav-cli:
image: fgerthoffert/jav-cli:latest
environment:
- 'CONFIG_DIR=/root/jav-data'
volumes:
- type: bind
source: c:/docker-tmp
target: /root/jav-data

jav-api:
image: fgerthoffert/jav-api:latest
ports:
- '5001:3001'
environment:
- 'CONFIG_PATH=/root/jav-data'
- 'AUTH0_DISABLED=true'
- 'AUTH0_DOMAIN=agile-jav.auth0.com'
- 'AUTH0_AUDIENCE=http://localhost:5001'
volumes:
- type: bind
source: c:/docker-tmp
target: /root/jav-data

jav-ui:
image: fgerthoffert/jav-ui:latest
ports:
- '5000:80'
environment:
- 'API_URL=http://127.0.0.1:5001'
- 'AUTH0_DISABLED=true'
- 'AUTH0_DOMAIN=agile-jav.auth0.com'
- 'AUTH0_CLIENT_ID=sGJDsqzc0VhKgoutaoyLWjyWK9kAwE2f'
- 'AUTH0_AUDIENCE=http://localhost:5001'
```
Note: The cli container is not configured with a cron to refresh data, you'd need to configure this on your host environment (see configuration update below)
### Configuration update
Expand Down
37 changes: 37 additions & 0 deletions docker-compose-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: '3.7'


services:
jav-cli:
image: fgerthoffert/jav-cli:latest
environment:
- 'CONFIG_DIR=/root/jav-data'
volumes:
- type: bind
source: c:/docker-tmp
target: /root/jav-data

jav-api:
image: fgerthoffert/jav-api:latest
ports:
- '5001:3001'
environment:
- 'CONFIG_PATH=/root/jav-data'
- 'AUTH0_DISABLED=true'
- 'AUTH0_DOMAIN=agile-jav.auth0.com'
- 'AUTH0_AUDIENCE=http://localhost:3001'
volumes:
- type: bind
source: c:/docker-tmp
target: /root/jav-data

jav-ui:
image: fgerthoffert/jav-ui:latest
ports:
- '5000:80'
environment:
- 'API_URL=http://127.0.0.1:5001'
- 'AUTH0_DISABLED=true'
- 'AUTH0_DOMAIN=agile-jav.auth0.com'
- 'AUTH0_CLIENT_ID=sGJDsqzc0VhKgoutaoyLWjyWK9kAwE2f'
- 'AUTH0_AUDIENCE=http://localhost:3001'

0 comments on commit 833d396

Please sign in to comment.