-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (52 loc) · 1.09 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
# docker-compose up -d
# -f compose-api.yml (if you want a custom file)
version: '3.2'
networks:
ghosts-network:
driver: bridge
services:
postgres:
image: postgres
container_name: ghosts-postgres
environment:
POSTGRES_DB: ghosts
POSTGRES_USER: ghosts
POSTGRES_PASSWORD: scotty@1
volumes:
- ./db_data:/var/lib/postgresql/data
logging:
options:
max-size: "100m"
max-file: "5"
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ghosts"]
interval: 10s
timeout: 5s
retries: 10
networks:
- ghosts-network
restart: always
ghosts-api:
image: dustinupdyke/ghosts
container_name: ghosts-api
depends_on:
- postgres
ports:
- "5000:5000"
networks:
- ghosts-network
restart: always
grafana:
image: grafana/grafana
container_name: ghosts-grafana
depends_on:
- postgres
ports:
- "3000:3000"
networks:
- ghosts-network
restart: always
volumes:
- ./g_data:/var/lib/grafana