-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (75 loc) · 1.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (75 loc) · 1.97 KB
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
services:
notes-core:
image: notes-core
build: ./
hostname: notes-core
depends_on:
postgres:
condition: service_healthy
# mysql:
# condition: service_healthy
environment:
- NOTES__ConnectionStrings__PgSql=Host=postgres;Database=notes;Username=notes;Password=notes
# - LTBDB__ConnectionStrings__MySql=Server=mysql;Database=notes;User=notes;Password=notes
- NOTES__Database__Provider=PgSql
- NOTES__Settings__SiteName=Notes!
- NOTES__Settings__PageSize=10
- NOTES__Mail__Enabled=false
- NOTES__Mail__Server=localhost
- NOTES__Mail__Port=25
- NOTES__Mail__From=admin@localhost
- NOTES__Mail__Username=demo
- NOTES__Mail__Password=demo
- NOTES__Mail__DisableCertificateValidation=false
- NOTES__Mail__DisableCheckCertificateRevocation=false
- TZ=Europe/Berlin
# volumes:
# - notes:/data
ports:
- 5000:5000
networks:
- notes
postgres:
image: postgres
hostname: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d $$POSTGRES_DB -U $$POSTGRES_USER" ]
interval: 1s
timeout: 5s
retries: 10
environment:
- POSTGRES_PASSWORD=notes
- POSTGRES_USER=notes
- POSTGRES_DB=notes
# volumes:
# - postgres:/var/lib/postgresql/data
networks:
- notes
# mysql:
# image: mariadb
# hostname: mysql
# healthcheck:
# test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
# interval: 10s
# timeout: 5s
# retries: 10
# start_period: 10s
# environment:
# - MARIADB_ROOT_PASSWORD=root
# - MARIADB_USER=notes
# - MARIADB_PASSWORD=notes
# - MARIADB_DATABASE=notes
# # volumes:
# # - mysql:/var/lib/mysql
# networks:
# - notes
# volumes:
# notes:
# external: false
# postgres:
# external: false
# mysql:
# external: false
networks:
notes:
name: notes