Use named volumes instead of bind mounts
This commit is contained in:
parent
76b539d6be
commit
b7c21c11f5
|
@ -12,7 +12,7 @@ services:
|
|||
MYSQL_PASSWORD: "woodpecker"
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: 1
|
||||
volumes:
|
||||
- /mnt/data/nixc.us/woodpecker/production/db:/var/lib/mysql
|
||||
- woodpecker_db_data:/var/lib/mysql
|
||||
networks:
|
||||
- woodpecker
|
||||
deploy:
|
||||
|
@ -55,7 +55,7 @@ services:
|
|||
- traefik
|
||||
- woodpecker
|
||||
volumes:
|
||||
- /mnt/data/nixc.us/woodpecker/production/data:/var/lib/woodpecker/
|
||||
- woodpecker_server_data:/var/lib/woodpecker/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
deploy:
|
||||
|
@ -218,3 +218,5 @@ services:
|
|||
|
||||
volumes:
|
||||
agent-secret: {}
|
||||
woodpecker_db_data: {}
|
||||
woodpecker_server_data: {}
|
||||
|
|
Loading…
Reference in New Issue