Docker Community Forums

Share and learn in the Docker community.

Volume data does not fill when running a bamboo container on the server

I am trying to run bamboo on server using docker containers. When i running on local machine work normally and volume save datas successfully. But when i run same docker compose file on server, volume data not save my datas.

docker-compose.yml

version: '3.2'

services:
  bamboo:
    container_name: bamboo-server_test
    image: atlassian/bamboo-server
    volumes:
      - ./volumes/bamboo_test_vol:/var/atlassian/application-data/bamboo
    ports:
      - 8085:8085

volumes:
  bamboo_test_vol:

Run this compose file on local machine

$ docker-compose up -d
  Creating network "test_default" with the default driver
  Creating volume "test_bamboo_test_vol" with default driver
  Creating bamboo-server_test ... done
$ docker ps
  CONTAINER ID        IMAGE                     COMMAND             CREATED             STATUS              PORTS                               NAMES
  916c98ca1a9d        atlassian/bamboo-server   "/entrypoint.sh"    24 minutes ago      Up 24 minutes       0.0.0.0:8085->8085/tcp, 54663/tcp   bamboo-server_test
$ ls
  docker-compose.yml    volumes
$ cd volumes/bamboo_test_vol/
$ ls
  bamboo.cfg.xml    logs

localhost:8085

Run this compose file on server

$ ssh <name>@<ip_address>
  password for <name>:
$ docker-compose up -d
  Creating network "test_default" with the default driver
  Creating volume "test_bamboo_test_vol" with default driver
  Creating bamboo-server_test ... done
$ docker ps
  CONTAINER ID        IMAGE                     COMMAND             CREATED            STATUS              PORTS                               NAMES
  38b77e1b736f        atlassian/bamboo-server   "/entrypoint.sh"    12 seconds ago     Up 11 seconds       0.0.0.0:8085->8085/tcp, 54663/tcp   bamboo-server_test
$ ls
  docker-compose.yml  volumes
$ cd volumes/
$ cd bamboo_test_vol/
$ ls
$ # VOLUME PATH IS EMPTY

<server_ip>:8085

In Container:

docker exec -it 72267bec67c6 bash

bamboo@72267bec67c6:/var/atlassian/application-data/bamboo$ cd /var/atlassian/application-data/bamboo/

bamboo@72267bec67c6:/var/atlassian/application-data/bamboo$ ls
bamboo@72267bec67c6:/var/atlassian/application-data/bamboo$

I didn’t have this problem when I tried the same process for jira-software. Why can’t it work through the bamboo server even though I use the exact same compose file?