-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1008 Bytes
/
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
version: '3'
services:
web:
build:
context: .
dockerfile: docker/web/Dockerfile
ports:
- 3000:3000
depends_on:
- redis
- db
environment:
REDIS_URL: "redis://redis:6379/0"
DATABASE_URL: "postgresql://thetech:thetech@db/thetech?pool=5"
ELASTICSEARCH_URL: "http://elasticsearch:9200"
S3_BUCKET: "thetech-production"
S3_HOST_NAME: "s3.amazonaws.com"
AWS_REGION: 'us-east-1'
volumes:
- ".:/usr/src/app"
redis:
image: "redis:alpine"
db:
build:
context: .
dockerfile: docker/db/Dockerfile
environment:
POSTGRES_USER: thetech
POSTGRES_PASSWORD: thetech
POSTGRES_DB: thetech
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- "./docker/data/db:/var/lib/postgresql/data"
elasticsearch:
image: "elasticsearch:5-alpine"
volumes:
- "./docker/data/elasticsearch:/usr/share/elasticsearch/data"
environment:
ES_JAVA_OPTS: "-Xms750m -Xmx750m"