Versions Compared

Key

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

...

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

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


Redis Volume 폴더 생성

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

...