Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titledeploy/docker-compose.yml
version: '3'

services:
  redisspring-demo:
    image: redis sooabia/spring-demo:1.0
    restart: always
    ports:
      - "6379:6379"'80:8080'
    volumeslinks:
      - redis
  /redis:/data/redis
    restartimage: alwaysredis 
   spring-demo ports:
    image:  sooabia/spring-demo:1.0- "6379:6379"
    restartvolumes: always
    ports:
     - '80:8080'/redis:/data/redis
    linksrestart:
      - redis always 


Redis Volume 폴더 생성

Code Block
## redis volume을 위한 폴더를 생성합니다.
[root@workspace-vm deploy]# mkdir /redis

...