-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
68 lines (61 loc) · 1.5 KB
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
services:
mongodb:
image: "mongo:latest"
container_name: mongo-container
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data_container:/data/db
networks:
- cryptoexchangeapinetwork
cryptoexchangeapi:
image: 'cryptoexchangeapi:latest'
build:
context: .
dockerfile: Dockerfile
container_name: cryptoexchangeapi
restart: on-failure
env_file:
- .env # Use the .env file for environment variables
ports:
- "1927:1927"
environment:
- server.port=1927
- spring.data.mongodb.host=mongodb
- spring.data.mongodb.port=${MONGO_DB_PORT}
- spring.data.mongodb.database=${MONGO_DB_NAME}
depends_on:
- mongodb
networks:
- cryptoexchangeapinetwork
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
ports:
- "9090:9090"
volumes:
- ./data/prometheus/config:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- cryptoexchangeapinetwork
grafana:
image: "grafana/grafana-oss:latest"
pull_policy: always
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data/grafana:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SERVER_DOMAIN=localhost
networks:
- cryptoexchangeapinetwork
volumes:
mongodb_data_container:
networks:
cryptoexchangeapinetwork: