Skip to content

Commit 2889c82

Browse files
authored
Merge pull request #310 from plural/add-version-tags-to-docker-images
Add version tags to docker compose file.
2 parents aa28a3d + d93d328 commit 2889c82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
services:
22
# service configuration for our dockerized Rails app
3-
3+
44
netrunner_cards_json:
55
restart: none
6-
image: registry.digitalocean.com/nsgcr/netrunner-cards-json:latest
6+
image: registry.digitalocean.com/nsgcr/netrunner-cards-json:${JSON_DATA_VERSION:-latest}
77
build: https://github.com/NetrunnerDB/netrunner-cards-json.git#main
88
volumes:
99
- netrunner-cards-json:/mnt/netrunner-cards-json
1010

1111
nrdb_api_server:
1212
restart: unless-stopped
13-
image: registry.digitalocean.com/nsgcr/nrdb-api-server:latest
13+
# Will use the latest image by default, but can be overridden with the API_SERVER_VERSION env var.
14+
image: registry.digitalocean.com/nsgcr/nrdb-api-server:${API_SERVER_VERSION:-latest}
1415
# build the Dockerfile next to this file, tag the built image with above image name
1516
build: .
16-
17+
1718
ports:
1819
- "3000:3000"
1920

0 commit comments

Comments
 (0)