This is a DVD Store API. The purpose of the API is to demo API design and Dev Ops discipline.
241
Dockerfile linkslatest (latest/Dockerfile)
$ docker run --name dvdstore-db -p 5432:5432 -e POSTGRES_USER=dbuser -e POSTGRES_PASSWORD=password -e POSTGRES_DB=dellstore2 -d scottseo/dvdstore-db
POSTGRES_USERDB user
POSTGRES_PASSWORDDB password
POSTGRES_DBDB instance name
db.url=jdbc:postgresql://dockerhost:5432/dellstore2?currentSchema=public
db.user=dbuser
db.pwd=password
Config example. Keep in mind that
dockerhostis an alias used while launching the API app server
https://s3.amazonaws.com/mydomain.com/staging/config.properties
S3 URL example. Path
/staging/is used as an indicator for deployment environment
https://mydomain.com/staging/config.properties
Web server URL. Config file can be hosted with http or https.
$ docker run --name dvdstore-api -d -p 8080:8080 --link dvdstore-db:dockerhost -e SWS_API_CONFIG_URL=https://s3.amazonaws.com/mydomain.com/staging/config.properties scottseo/dvdstore-api
Notice the
--link dvdstore-db:dockerhostdockerhost is the hostname used in the config
com.scottwseo.api.CONFIG_URLUse the URL from Step 2
Content type
Image
Digest
Size
73.3 MB
Last updated
almost 10 years ago
docker pull scottseo/dvdstore-api