Skip to content

Commit b0c4997

Browse files
committed
bugfix: persistence dependencies
1 parent 5c53744 commit b0c4997

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

docker-compose.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
services:
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-
268276
volumes:
269277
redis:
270278
db_data:

0 commit comments

Comments
 (0)