-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
46 lines (43 loc) · 921 Bytes
/
docker-compose-dev.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
# docker-compose -f compose-api.yml up
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:
- ./_data/postgresql:/var/lib/postgresql/data
logging:
options:
max-size: "100m"
max-file: "5"
ports:
- "5101:5432"
networks:
- ghosts-network
ghosts-api:
image: dockreg.cwd.local/ghosts/api
container_name: ghosts-api
depends_on:
- "postgres"
ports:
- "5000:5000"
networks:
- ghosts-network
grafana:
image: grafana/grafana
container_name: ghosts-grafana
depends_on:
- "postgres"
ports:
- "3000:3000"
networks:
- ghosts-network
volumes:
- ./_data/grafana:/var/lib/grafana