1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-08-24 20:08:55 +02:00

Add docker-compose dev

This commit is contained in:
ebosas
2021-06-03 11:52:54 +03:00
parent 3631d96579
commit 5ef4a3fe6a
2 changed files with 18 additions and 6 deletions

17
docker-compose-dev.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
rabbitmq:
image: "rabbitmq:3-management-alpine"
ports:
- 5672:5672
- 15672:15672
postgres:
image: "postgres:13-alpine"
environment:
- POSTGRES_PASSWORD
ports:
- 5432:5432
volumes:
- ./database/structure.sql:/docker-entrypoint-initdb.d/structure.sql
networks:
default:
name: microservices_network

View File

@@ -11,7 +11,6 @@ services:
interval: 10s
timeout: 10s
retries: 5
postgres:
image: "postgres:13-alpine"
environment:
@@ -25,7 +24,6 @@ services:
interval: 10s
timeout: 10s
retries: 5
server:
build:
context: .
@@ -38,7 +36,6 @@ services:
depends_on:
rabbitmq:
condition: service_healthy
backend:
container_name: microservices_backend
build:
@@ -51,7 +48,6 @@ services:
depends_on:
rabbitmq:
condition: service_healthy
database:
build:
context: .
@@ -63,7 +59,6 @@ services:
condition: service_healthy
postgres:
condition: service_healthy
networks:
default:
name: microservices_network