-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-live-two.yaml
executable file
·80 lines (75 loc) · 1.73 KB
/
docker-compose-live-two.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
services:
web:
build:
context: ./src
dockerfile: ./testapp.Dockerfile
labels:
restic-compose-backup.volumes: true
restic-compose-backup.volumes.include: "/tests"
volumes:
- ./live_two_filestores/src/tests:/srv/tests
- ./live_two_filestores/.vscode:/srv/code
environment:
- SOME_VALUE=test
- ANOTHER_VALUE=1
networks:
- default
- global
web-2:
build:
context: ./src
dockerfile: ./testapp.Dockerfile
labels:
restic-compose-backup.volumes: true
restic-compose-backup.volumes.exclude: "/tests"
volumes:
- ./live_two_filestores/src/tests:/srv/tests
- ./live_two_filestores/.vscode:/srv/code
environment:
- SOME_VALUE=test
- ANOTHER_VALUE=1
networks:
- default
- global
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
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- default
- global
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
healthcheck:
test: /usr/bin/pg_isready
interval: 5s
timeout: 10s
retries: 120
networks:
- default
- global
volumes:
mariadbdata:
pgdata:
networks:
global:
external: true