-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.03 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
version: '2'
services:
postgres:
image: 'postgres:13.6-alpine'
volumes:
- 'postgres:/var/lib/postgresql/data'
env_file:
- '.env'
environment:
POSTGRES_USER: ${DATABASE_DEV_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_DEV_PASSWORD}
website:
depends_on:
- 'postgres'
build: .
ports:
- '8282:3000'
- '1080:1080'
volumes:
- '.:/app'
- docker_website_bash_history:/home/lumen/hist
env_file:
- '.env'
environment:
HISTFILE: /home/lumen/hist/.bash_history
elasticsearch:
image: elasticsearch:7.17.0
environment:
- http.host=0.0.0.0
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- discovery.type=single-node
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
mem_limit: 4g
volumes:
postgres:
esdata:
docker_website_bash_history: