Skip to content

Commit

Permalink
Merge pull request #400 from HSLdevcom/docker-compose-enhancements
Browse files Browse the repository at this point in the history
Make the usage of Docker Compose easier
  • Loading branch information
jhanninen authored Mar 25, 2024
2 parents 89aa890 + ec9939b commit fa31eb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Remember to also include `DIGITRANSIT_APIKEY` !
Build the local version of `hsl-map-publisher`:

```
docker build --build-arg BUILD_ENV=local -t hsl-map-publisher .
docker compose build
```

Setup the development environment:
Expand Down
13 changes: 10 additions & 3 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ services:

publisher-server:
image: hsl-map-publisher
build:
context: .
args:
- BUILD_ENV=local
platforms:
- "linux/amd64"
ports:
- 4000:4000
environment:
- SERVICE=server:production
volumes:
- ./output:/output
- ./output:/opt/publisher/output
- ./fonts:/fonts
depends_on:
publisher-postgres:
Expand All @@ -31,12 +37,12 @@ services:

publisher-render:
image: hsl-map-publisher
pull_policy: never # use the same build as publisher-server
ports:
- 5000:5000
environment:
- SERVICE=start:production
volumes:
- ./output:/output
- ./fonts:/fonts
depends_on:
publisher-postgres:
Expand All @@ -46,12 +52,13 @@ services:

publisher-worker:
image: hsl-map-publisher
pull_policy: never # use the same build as publisher-server
deploy:
replicas: 2
environment:
- SERVICE=worker:production
volumes:
- ./output:/output
- ./output:/opt/publisher/output
- ./fonts:/fonts
depends_on:
publisher-postgres:
Expand Down

0 comments on commit fa31eb4

Please sign in to comment.