-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
110 lines (108 loc) · 2.78 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.1'
services:
database-tweet:
container_name: database-tweet
image: mysql:5.7
restart: always
networks:
- twitter-network
environment:
MYSQL_DATABASE: 'tweet_database'
MYSQL_USER: 'tweet_user'
MYSQL_PASSWORD: 'brtwcvv1'
MYSQL_ROOT_PASSWORD: 'brtwcvv1'
ports:
- '3306:3306'
volumes:
- my-db-tweet:/var/lib/mysql
database-user:
container_name: database-user
image: mysql:5.7
restart: always
networks:
- twitter-network
environment:
MYSQL_DATABASE: 'user_database'
MYSQL_USER: 'jjeanjacques'
MYSQL_PASSWORD: 'brtwcvv1'
MYSQL_ROOT_PASSWORD: 'brtwcvv1'
MYSQL_TCP_PORT: '3307'
ports:
- '3307:3307'
volumes:
- my-db-user:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- '9080:8080'
networks:
- twitter-network
sqs-local:
container_name: sqs-local
image: localstack/localstack:latest
restart: always
networks:
- twitter-network
environment:
- AWS_DEFAULT_REGION=us-west-1
- EDGE_PORT=4576
- SERVICES=sqs
- HOSTNAME=localhost
- HOSTNAME_EXTERNAL=sqs-local # change to "localhost" when running without docker
ports:
- '4576:4576'
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- ./environment/sqs/:/docker-entrypoint-initaws.d/
dynamodb-local:
container_name: dynamodb-local
build: ./environment/dynamodb
restart: always
networks:
- twitter-network
environment:
- AWS_DEFAULT_REGION=us-west-1
- EDGE_PORT=4566
- SERVICES=dynamodb
- KINESIS_PROVIDER=kinesalite
- HOSTNAME=localhost
- HOSTNAME_EXTERNAL=dynamodb-local # change to "localhost" when running without docker
ports:
- '4566:4566'
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- ./environment/dynamodb/:/docker-entrypoint-initaws.d/
dynamodb-admin:
container_name: dynamodb-admin
image: aaronshaf/dynamodb-admin
ports:
- "8001:8001"
networks:
- twitter-network
environment:
- DYNAMO_ENDPOINT=http://dynamodb-local:4566
- AWS_REGION=us-west-1
- AWS_ACCESS_KEY=admin
- AWS_SECRET_ACCESS_KEY=admin
depends_on:
- dynamodb-local
redis-timeline:
container_name: redis-timeline
image: redis:6.2-alpine
restart: always
networks:
- twitter-network
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- my-db-timeline:/data
volumes:
my-db-tweet:
my-db-user:
my-db-timeline:
networks:
twitter-network: