Browse Source

Add init to containers

cofe
sn0w 6 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 @@
version: '2'
version: '3.7'

networks:
default:
@@ -7,6 +7,7 @@ networks:

services:
db:
init: true
image: postgres:9.6-alpine
restart: unless-stopped
command: -c 'shared_preload_libraries=pg_stat_statements' -c 'pg_stat_statements.track=all'
@@ -14,16 +15,18 @@ services:
- ./data/db:/var/lib/postgresql/data

redis:
init: true
image: redis:4-alpine
restart: unless-stopped
volumes:
- ./data/redis:/data

es:
init: true
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
restart: unless-stopped
environment:
ES_JAVA_OPTS: "-Xms${DOCKER__ES_RAM_MAX} -Xmx${DOCKER__ES_RAM_MAX}"
ES_JAVA_OPTS: "-Xms${DOCKER__ES_RAM} -Xmx${DOCKER__ES_RAM}"
ports:
- "127.0.0.1:13999:9200"
volumes:

Loading…
Cancel
Save