-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-live.yaml
executable file
·66 lines (61 loc) · 1.46 KB
/
docker-compose-live.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
web:
image: nginx
labels:
restic-compose-backup.volumes: true
restic-compose-backup.volumes.include: "/tests"
volumes:
- ./src/tests:/srv/tests
- ./.vscode:/srv/code
environment:
- SOME_VALUE=test
- ANOTHER_VALUE=1
networks:
- default
web-2:
image: nginx
labels:
restic-compose-backup.volumes: true
restic-compose-backup.volumes.exclude: "/tests"
volumes:
- ./src/tests:/srv/tests
- ./.vscode:/srv/code
environment:
- SOME_VALUE=test
- ANOTHER_VALUE=1
networks:
- default
mariadb:
image: mariadb:10
labels:
restic-compose-backup.mariadb: true
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
- MYSQL_DATABASE=mydb-mariadb
- MYSQL_USER=myuser
- MYSQL_PASSWORD=mypassword
volumes:
- mariadbdata:/var/lib/mysql
- ./test-data/mysql-test-data.sql:/docker-entrypoint-initdb.d/classicmodels.sql
networks:
- default
postgres:
image: postgres:13
labels:
restic-compose-backup.postgres: true
environment:
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=pgpassword
- POSTGRES_DB=test-postgres
volumes:
- pgdata:/var/lib/postgresql/data
- ./test-data/postgresql-test-data.sql:/docker-entrypoint-initdb.d/postgresql-test-data.sql
networks:
- default
volumes:
mariadbdata:
pgdata:
cache:
networks:
global:
external: true