-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
46 lines (42 loc) · 1011 Bytes
/
docker-compose.yaml
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
version: "3"
services:
# Uncomment out to just run the dependencies and run locally.
# transmit:
# build:
# context: .
# dockerfile: Dockerfile
# depends_on:
# - db
# - nats
# - prometheus
# ports:
# - "8080:8080"
# volumes:
# # This assumes a `config.ron` file is located at the
# # root of the build context.
# - ./config.ron:/usr/src/transmit/config.ron
db:
image: postgres:latest
environment:
- POSTGRES_DB=transmit
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- dbdata:/var/lib/postgresql/data
nats:
image: nats:latest
ports:
- "4222:4222"
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
# This assumes a `prometheus.yaml` file is located at the
# root of the build context.
- ./prometheus.yaml:/etc/prometheus/prometheus.yml
volumes:
dbdata:
driver: local