This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
forked from boonisz/cachet-url-monitor-dc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (80 loc) · 2.17 KB
/
docker-compose.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
81
82
83
84
version: "3"
services:
db:
image: postgres:13-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
restart: always
networks:
- net
# net:
# ipv4_address: 172.0.3.3
cachet:
build:
context: ./cachet
args:
- cachet_ver=2.4
ports:
- 80:8000
environment:
# - APP_URL=172.0.3.2:8000
# - APP_URL=http://cachet:8000 # Use service name as hostname
# - APP_KEY=${APP_KEY:-null}
- APP_KEY=base64:yrtegjl6ZfZsXfO9ji1Ci5HM7LPTFf/is/YZpvq6rpg=
# - APP_ENV=${APP_ENV:-production}
- APP_ENV=${APP_ENV:-nonproduction}
- APP_DEBUG=true
- APP_LOG=warninglog
- DEBUG=true
- DB_DRIVER=pgsql
# - DB_HOST=${DB_HOST}
- DB_HOST=db # todo try changing back to ${DB_HOST} because 'db' might be the default
- DB_PORT=${DB_PORT}
- DB_USERNAME=${DB_USERNAME}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_DATABASE}
- DB_PREFIX=${DB_PREFIX}
- FORCE_MIGRATION=true # todo try changing back to false (default)
- MAIL_DRIVER=smtp
- MAIL_HOST=smtp.mailgun.org
- MAIL_PORT=587
- MAIL_USERNAME=postmaster@sandbox07b2a18fdb9b4815b0685c0afc66c0ab.mailgun.org
- MAIL_PASSWORD=fcebd27a2c6b097c30c26ef1bcba3eae-309b0ef4-3c57e905
- MAIL_ENCRYPTION=${MAIL_ENCRYPTION}
- CACHE_DRIVER=database
- QUEUE_DRIVER=database
depends_on:
- db
restart: on-failure
networks:
- net
# net:
# ipv4_address: 172.0.3.2
monitor:
build:
context: ./cachet-url-monitor
image: cachet-url-monitor
environment:
# - CACHET_DEV=false
- CACHET_DEV=true
volumes:
- ./monitor-config.yml:/usr/src/app/config/config.yml
depends_on:
- cachet
restart: on-failure
networks:
- net
# net:
# ipv4_address: 172.0.3.4
networks:
net:
driver: bridge
# ipam: # IP Adress Management, to have static IP
# driver: default
# config:
# - subnet: 172.0.3.0/24