sha256:61f23b6e185b788947cdc87a30c45352831eb793a50f778d56671c0decd6deb3
Last pushed
over 1 year by gloursdocker
Type
Compose
Manifest digest
sha256:61f23b6e185b788947cdc87a30c45352831eb793a50f778d56671c0decd6deb3
services:
redis-server:
#image: redis:7.2.4
# uncomment to test Compose with OCI artifact, replace gloursdocker by your Docker Hub username account
image: gloursdocker/oci-redis-demo
build:
dockerfile: ./Dockerfile.redis
environment:
- REDIS_ARGS=--save 30 1
# snapshot
ports:
- 6379:6379
volumes:
#- ./scripts:/scripts
- redis-data:/data
post_start:
- command: /scripts/load.sh
webapp:
build: .
image: restos
ports:
- 8080:8080
environment:
#- MESSAGE=🎉 Hello from 🐳 Compose 👋
- TITLE=My favorite restaurants
- REDIS_URL=redis-server:6379
depends_on:
- redis-server
develop:
watch:
- action: sync
path: ./public
target: /app/public
# To be uncommented with DD 2.40
#- action: rebuild
# path: .
# include: ["*.go", "Dockerfile"]
- action: rebuild
path: ./Dockerfile
- action: rebuild
path: ./main.go
volumes:
redis-data:
docker compose -f oci://gloursdocker/testdemodevoxx:latest upUse the above command to pull and run the Compose file. Learn more.