Update local dev compose and stack setup

This commit is contained in:
Einar Forselv 2020-03-07 02:54:56 +01:00
parent 1a100d73ab
commit 0bab85f5cf
2 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,4 @@
version: '3'
version: '3.7'
services:
backup:
build: ./src
@ -8,6 +8,9 @@ services:
labels:
restic-compose-backup.volumes: true
restic-compose-backup.volumes.include: 'src'
networks:
- default
- global
volumes:
# Map in docker socket
- /var/run/docker.sock:/tmp/docker.sock:ro
@ -68,3 +71,7 @@ volumes:
mysqldata:
mariadbdata:
pgdata:
networks:
global:
external: true

View File

@ -10,8 +10,14 @@ services:
- MYSQL_DATABASE=mydb
- MYSQL_USER=myuser
- MYSQL_PASSWORD=mypassword
networks:
- global
volumes:
- mariadbdata:/var/lib/mysql
volumes:
mariadbdata:
networks:
global:
external: true