Browse Source

Add init to containers

cofe
sn0w 4 months ago
parent
commit
60c5c2c62e
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      docker-compose.yml

+ 5
- 2
docker-compose.yml View File

@@ -1,4 +1,4 @@
1
-version: '2'
1
+version: '3.7'
2 2
 
3 3
 networks:
4 4
   default:
@@ -7,6 +7,7 @@ networks:
7 7
 
8 8
 services:
9 9
   db:
10
+    init: true
10 11
     image: postgres:9.6-alpine
11 12
     restart: unless-stopped
12 13
     command: -c 'shared_preload_libraries=pg_stat_statements' -c 'pg_stat_statements.track=all'
@@ -14,16 +15,18 @@ services:
14 15
       - ./data/db:/var/lib/postgresql/data
15 16
 
16 17
   redis:
18
+    init: true
17 19
     image: redis:4-alpine
18 20
     restart: unless-stopped
19 21
     volumes:
20 22
       - ./data/redis:/data
21 23
 
22 24
   es:
25
+    init: true
23 26
     image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
24 27
     restart: unless-stopped
25 28
     environment:
26
-      ES_JAVA_OPTS: "-Xms${DOCKER__ES_RAM_MAX} -Xmx${DOCKER__ES_RAM_MAX}"
29
+      ES_JAVA_OPTS: "-Xms${DOCKER__ES_RAM} -Xmx${DOCKER__ES_RAM}"
27 30
     ports:
28 31
       - "127.0.0.1:13999:9200"
29 32
     volumes:

Loading…
Cancel
Save