-
Notifications
You must be signed in to change notification settings - Fork 2
/
cyclos.yml
80 lines (80 loc) · 2.71 KB
/
cyclos.yml
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
version: '3'
services:
cyclos-db:
image: cyclos/db
container_name: cyclos-db
restart: always
hostname: cyclos-db
networks:
- cyclos-net
volumes:
- ./db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${CYCLOS_DB_NAME:-cyclosdb}
- POSTGRES_USER=${CYCLOS_DB_USER:-admin}
- POSTGRES_PASSWORD=${CYCLOS_DB_PASSWORD:-foobar}
# pgadmin:
# image: dpage/pgadmin4
# container_name: pgadmin
# restart: always
# hostname: pgadmin
# networks:
# - cyclos-net
# - webproxy
# environment:
# - PGADMIN_DEFAULT_EMAIL=kris.laermans@gmail.com
# - PGADMIN_DEFAULT_PASSWORD=1234
# - VIRTUAL_HOST=${CYCLOSDB_VIRTUAL_HOST:-monitoring.localhost}
# - VIRTUAL_PORT=80
cyclos-app:
image: cyclos/cyclos:4.11.4
restart: always
container_name: cyclos-app
networks:
- cyclos-net
- webproxy
links:
- cyclos-db:cyclos-db
depends_on:
- cyclos-db
volumes:
- ./cyclos/logs:/usr/local/tomcat/logs
# Not working server.xml why is the file not mounted on the server (check for auto rewrite)
#- ./cyclos/tomcat/server.xml:/usr/local/tomcat/conf/server.xml
environment:
- DB_HOST=cyclos-db
- DB_NAME=${CYCLOS_DB_NAME:-cyclosdb}
- DB_USER=${CYCLOS_DB_USER:-admin}
- DB_PASSWORD=${CYCLOS_DB_PASSWORD:-foobar}
- VIRTUAL_HOST=${CYCLOS_VIRTUAL_HOST:-ebanking.mlc.test}
- VIRTUAL_PORT=80
# - LETSENCRYPT_HOST=${CYCLOS_VIRTUAL_HOST:-ebanking.mlc.test}
# - LETSENCRYPT_EMAIL=${HTTPS_MAIL:-me@example.com}
pgbackups:
image: prodrigestivill/postgres-backup-local:10
restart: always
container_name: pgbackups
volumes:
- ./db-backups:/backups
networks:
- cyclos-net
links:
- cyclos-db
depends_on:
- cyclos-db
environment:
- POSTGRES_HOST=cyclos-db
- POSTGRES_DB=${CYCLOS_DB_NAME:-cyclosdb}
- POSTGRES_USER=${CYCLOS_DB_USER:-admin}
- POSTGRES_PASSWORD=${CYCLOS_DB_PASSWORD:-foobar}
- POSTGRES_EXTRA_OPTS=-Z9 --schema=public --blobs
- SCHEDULE=@hourly
- BACKUP_KEEP_DAYS=7
- BACKUP_KEEP_WEEKS=4
- BACKUP_KEEP_MONTHS=6
- HEALTHCHECK_PORT=80
networks:
webproxy:
external:
name: ${NETWORK:-webproxy}
cyclos-net: