-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (60 loc) · 1.45 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
61
62
63
64
65
66
67
# db for local dev
version: '3.9'
services:
postgresql:
image: postgres:12.9-alpine # matches version used on aws environments
container_name: pg-device-definitions
ports:
- "5432:5432"
environment:
- POSTGRES_USER=dimo
- POSTGRES_PASSWORD=dimo
- POSTGRES_DB=device_definitions_api
volumes:
- postgresdb:/var/lib/postgresql/data:delegated
ipfs:
image: ipfs/go-ipfs:latest
environment:
- IPFS_PROFILE=server
- IPFS_PATH=/ipfsdata
volumes:
- ./data/ipfs:/ipfsdata
ports:
- "4001:4001"
- "127.0.0.1:8080:8080"
- "127.0.0.1:8081:8081"
- "127.0.0.1:5001:5001"
redis:
image: redis:6.2 # latest version on ElastiCache
container_name: redis-device-definitions-api
ports:
- "6379:6379"
volumes:
- redis:/data:delegated
# zookeeper:
# image: 'bitnami/zookeeper:latest'
# ports:
# - '2181:2181'
# environment:
# - ALLOW_ANONYMOUS_LOGIN=yes
# # Does not persist anything!
# kafka:
# image: 'bitnami/kafka:latest'
# ports:
# - '9092:9092'
# environment:
# - KAFKA_BROKER_ID=1
# - KAFKA_LISTENERS=PLAINTEXT://:9092
# - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
# - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
# - ALLOW_PLAINTEXT_LISTENER=yes
# depends_on:
# - zookeeper
volumes:
postgresdb:
driver: local
redis:
driver: local
networks:
elastic:
driver: bridge