-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
114 lines (105 loc) · 2.4 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
111
112
113
114
version: '3'
services:
mongodb:
image: mongo:5.0
ports:
- "27017:27017"
volumes:
- ./data:/data/db
environment:
MONGO_INITDB_DATABASE: pop
elasticsearch:
image: opensearchproject/opensearch:latest
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- cluster.routing.allocation.disk.threshold_enabled=false
ports:
- 9200:9200
volumes:
- ./opensearch:/usr/share/elasticsearch/data
# kibana:
# container_name: kb-container
# image: docker.elastic.co/kibana/kibana:7.11.0
# environment:
# - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
# networks:
# - mongo_elasticsearch_network
# depends_on:
# - elasticsearch
# ports:
# - 5601:5601
localstack:
image: localstack/localstack:latest
user: localstack
environment:
- DEBUG=1
- SERVICES=s3
- LOCALSTACK_HOSTNAME=localstack
- DEFAULT_REGION=us-east-1
- USE_SINGLE_REGION=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 4566:4566
aws-cli:
image: amazon/aws-cli:latest
depends_on:
- localstack
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=us-east-1
entrypoint: /bin/sh -c
command: >
"
aws --endpoint-url=http://localstack:4566 s3api create-bucket --bucket pop --region us-east-1
"
api:
image: node:14
command: bash -c "npm run dev"
depends_on:
- mongodb
- elasticsearch
- localstack
working_dir: /app
ports:
- 3000:3000
env_file: ./apps/api/.env
volumes:
- ./apps/api:/app:rw
diffusion:
image: node:14
command: bash -c "npm run dev"
depends_on:
- mongodb
- elasticsearch
- localstack
- api
working_dir: /app
ports:
- 3001:8081
env_file: ./apps/diffusion/.env
volumes:
- ./apps/diffusion:/app:rw
edition:
image: node:15
command: bash -c "npm run dev"
depends_on:
- mongodb
- elasticsearch
- localstack
- api
working_dir: /app
ports:
- 3002:3000
environment:
- POP_URL=http://localhost:3001
- API_URL=http://localhost:3000
- BUCKET_URL=http://localhost:4566
volumes:
- ./apps/production:/app:rw
networks:
default:
external: true
name: docker