11services :
2-
32 db :
4- image : ' postgres:12.2-alpine'
3+ image : " postgres:12.2-alpine"
54 hostname : " ${POSTGRES_HOSTNAME}"
65 restart : unless-stopped
76 environment :
87 POSTGRES_USER : " ${POSTGRES_USER}"
98 POSTGRES_PASSWORD : " ${POSTGRES_PASSWORD}"
10- command : postgres -c config_file=/etc/postgresql.conf -c hba_file=/etc/pg_hba.conf
9+ command :
10+ postgres -c config_file=/etc/postgresql.conf -c hba_file=/etc/pg_hba.conf
1111 volumes :
1212 - db_data:/var/lib/postgresql/data
1313 - ./local_dev/pg_hba.conf:/etc/pg_hba.conf
@@ -16,18 +16,26 @@ services:
1616 - headstart
1717
1818 redis :
19- image : ' redis:6.0-alpine'
19+ image : " redis:6.0-alpine"
2020 restart : unless-stopped
2121 hostname : " ${REDIS_HOST}"
2222 environment :
2323 REDIS_HOST : " ${REDIS_HOST}"
2424 REDIS_PORT : " ${REDIS_PORT}"
25- command : ["redis-server", "/etc/redis/redis.conf", "--bind", "${REDIS_HOST}", "--port", "${REDIS_PORT}"]
25+ command :
26+ [
27+ " redis-server" ,
28+ " /etc/redis/redis.conf" ,
29+ " --bind" ,
30+ " ${REDIS_HOST}" ,
31+ " --port" ,
32+ " ${REDIS_PORT}" ,
33+ ]
2634 volumes :
27- - ' redis:/var/lib/redis/data'
28- - ./local_dev/redis.conf:/etc/redis/redis.conf
35+ - " redis:/var/lib/redis/data"
36+ - ./local_dev/redis.conf:/etc/redis/redis.conf
2937 ports :
30- - " 127.0.0.1:${REDIS_PORT}:${REDIS_PORT}"
38+ - " 127.0.0.1:${REDIS_PORT}:${REDIS_PORT}"
3139 networks :
3240 - headstart
3341
@@ -80,6 +88,7 @@ services:
8088 - ./server/workers/persistence/src:/api
8189 depends_on :
8290 - redis
91+ - db
8392 networks :
8493 - headstart
8594
@@ -264,7 +273,6 @@ services:
264273 networks :
265274 - headstart
266275
267-
268276volumes :
269277 redis :
270278 db_data :
0 commit comments