You've already forked microservices
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:
17
docker-compose-dev.yml
Normal file
17
docker-compose-dev.yml
Normal 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
|
@@ -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
|
||||
name: microservices_network
|
Reference in New Issue
Block a user