-
Notifications
You must be signed in to change notification settings - Fork 3k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
docker stack help #1299
Comments
Unfortunately this is not the place for this question, as issues are for bugs and feature requests. Please see how to get support. But as this has nothing to do with npm and is just a docker-compose thing, other communities will most likely be more helpful to you than this one. |
NO worries.. got the solution ... check this out... will help other people.. and my suggetion to you please make document on this ... how to dpeloy with docker stack ... add below code on your website... will help a lot off people who is looking for docker stack with nfs....its work for me.... version: '3.4'
volumes:
nfsdata:
driver: local
driver_opts:
type: "nfs"
o: "addr=192.168.0.140,rw,nfsvers=4,async"
device: ":/mnt/data/volumes/nginx-proxy-manager/data"
nfsletsencrypt:
driver: local
driver_opts:
type: "nfs"
o: "addr=192.168.0.140,rw,nfsvers=4,async"
device: ":/mnt/data/volumes/nginx-proxy-manager/letsencrypt"
networks:
nginx_network:
driver: overlay
attachable: true
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
ports:
- '80:80'
- '81:81'
- '443:443'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
volumes:
- nfsdata:/data
- nfsletsencrypt:/etc/letsencrypt
networks:
- nginx_network
db:
image: 'jc21/mariadb-aria:10.4'
environment:
MYSQL_ROOT_PASSWORD: 'npm'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
volumes:
- /mnt/data/volumes/nginx-proxy-manager/data/mysql:/var/lib/mysql
networks:
- nginx_network |
i just add below line .. instead of named volume. in db service..
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Working with docker stack i have docker stack as below its not working pales suggest me changes .. i dont want a bind because its generate unnamed volumes.
The text was updated successfully, but these errors were encountered: