Skip to content

Commit 8c8acf9

Browse files
committed
chore: just a few dev cleanups
1 parent 08e9836 commit 8c8acf9

File tree

5 files changed

+3122
-2802
lines changed

5 files changed

+3122
-2802
lines changed

docker-compose.dev.yml

+21-6
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,32 @@ services:
2323
- bash
2424
- -c
2525
- |
26-
python manage.py migrate
2726
python manage.py runserver 0.0.0.0:8000
2827
ports:
2928
- "8000:8000"
3029
volumes:
3130
- .:/code
3231
depends_on:
33-
- clickhouse
34-
- db
35-
- redis
36-
- rabbitmq
32+
migrations:
33+
condition: service_completed_successfully
34+
clickhouse:
35+
condition: service_started
36+
db:
37+
condition: service_healthy
38+
redis:
39+
condition: service_started
40+
rabbitmq:
41+
condition: service_started
42+
43+
migrations:
44+
build: .
45+
environment: *django_env
46+
command: python manage.py migrate
47+
depends_on:
48+
db:
49+
condition: service_healthy
50+
volumes:
51+
- .:/code
3752

3853
web:
3954
build:
@@ -55,7 +70,7 @@ services:
5570
- app
5671

5772
db:
58-
image: postgres:14-alpine
73+
image: postgres:16-alpine
5974
restart: on-failure
6075
environment:
6176
POSTGRES_USER: housewatch

0 commit comments

Comments
 (0)