11services :
2+
23 billing-platform-service :
3- restart : on-failure
4- tty : true
5- container_name : billing-platform-service
64 image : ${BILLING_PLATFORM_SERVICE_IMAGE:-billing-platform-service:local-cre}
7- command : ["grpc- service"]
5+ container_name : billing-platform- service
86 depends_on :
97 postgres :
108 condition : service_healthy
119 migrations :
1210 condition : service_started
13- ports :
14- - " 2112:2112"
15- - " 2222:2222"
16- - " 2223:2223"
17- - " 2257:2257"
11+ restart : on-failure
12+ tty : true
13+ command : ["grpc-service"]
1814 environment :
1915 PROMETHEUS_PORT : 2112
2016 BILLING_SERVER_PORT : 2222
@@ -29,6 +25,11 @@ services:
2925 DB_NAME : billing_platform
3026 DB_USERNAME : postgres
3127 DB_PASSWORD : postgres
28+ ports :
29+ - " 2112:2112"
30+ - " 2222:2222"
31+ - " 2223:2223"
32+ - " 2257:2257"
3233 healthcheck :
3334 test : ["CMD", "grpc_health_probe", "-addr=localhost:2222"]
3435 interval : 200ms
@@ -45,35 +46,35 @@ services:
4546 POSTGRES_HOST : postgres
4647 POSTGRES_USER : postgres
4748 POSTGRES_PASSWORD : postgres
49+ ports :
50+ - " 5432:5432"
4851 healthcheck :
4952 test : ["CMD","pg_isready","-U","${POSTGRES_USER}","-d","${POSTGRES_DB}","-h","${POSTGRES_HOST}"]
5053 interval : 5s
5154 timeout : 10s
5255 retries : 3
53- ports :
54- - " 5432:5432"
5556
5657 migrations :
5758 image : ${BILLING_PLATFORM_SERVICE_IMAGE:-billing-platform-service:local-cre}
5859 container_name : db-migrations-billing-platform
60+ depends_on :
61+ postgres :
62+ condition : service_healthy
5963 restart : on-failure
6064 command : ["db", "create-and-migrate", "--url=${DATABASE_URL}"]
6165 environment :
6266 DATABASE_URL : postgres://postgres:postgres@postgres:postgres/billing_platform
6367 networks :
6468 - backend
65- depends_on :
66- postgres :
67- condition : service_healthy
6869
6970 populate_test_data :
7071 image : ${BILLING_PLATFORM_SERVICE_IMAGE:-billing-platform-service:local-cre}
7172 container_name : db-migrations-billing-platform
72- restart : on-failure
73- command : ["populate-db", "--environment=local"]
7473 depends_on :
7574 billing-platform-service :
7675 condition : service_started
76+ restart : on-failure
77+ command : ["populate-db", "--environment=local"]
7778 networks :
7879 - backend
79-
80+
0 commit comments