-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (57 loc) · 1.2 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
version: '3'
services:
autoheal:
restart: always
image: willfarrell/autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=autoheal
volumes:
- /var/run/docker.sock:/var/run/docker.sock
nginx:
image: nginx:alpine
restart: unless-stopped
links:
- server
- grafana
ports:
- 80:80
- 443:443
volumes:
- ./.data/nginx/log:/var/log/nginx
- ./nginx/conf.d:/etc/nginx/conf.d
db:
image: postgres:alpine
restart: unless-stopped
volumes:
- ./.data/db:/var/lib/postgresql
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
PGDATA: /var/lib/postgresql/pgdata
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASS: postgres
# ports:
# - 5432:5432
server:
build:
context: ./server
restart: unless-stopped
labels:
- autoheal=true
depends_on:
- db
links:
- db
grafana:
build:
context: ./grafana
restart: unless-stopped
environment:
GF_DATABASE_TYPE: postgres
GF_DATABASE_HOST: db
GF_DATABASE_NAME: grafana
GF_DATABASE_USER: grafana_user
depends_on:
- db
links:
- db