Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How i can mappeed folder backup in docker composer? #44

Closed
johndiego opened this issue Feb 21, 2017 · 1 comment
Closed

How i can mappeed folder backup in docker composer? #44

johndiego opened this issue Feb 21, 2017 · 1 comment
Assignees

Comments

@johndiego
Copy link

johndiego commented Feb 21, 2017

**
I liked just ready only no autentications folder backup, how i can solved this?
**
Tks advanced!

image

version: '2'
services:
    server:
        build: ./server
        image: pnick
        container_name: backend
        command: python  manage.py  runserver 0.0.0.0:8000
        volumes:
            - ./server:/server
        ports:
            - "8000:8000"
    samba:
        image: dperson/samba
        command: -u "root;root" -s "server/backup:yes;yes"
        restart: always
        ports:
            - "139:139"
            - "445:445"


@dperson dperson self-assigned this Feb 25, 2017
@dperson
Copy link
Owner

dperson commented Feb 25, 2017

It sounds like you want to have the same local storage that's passed into your python app shared by samba. If that's the case, the below should work (note I also fixed a typo in your share setup -s):

    samba:
        image: dperson/samba
        command: -u "root;root" -s "backup;/server/backup:yes;yes"
        restart: always
        ports:
            - "139:139"
            - "445:445"
        volumes:
            - ./server:/server

@dperson dperson closed this as completed Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants