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
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: "postgres:13-alpine"
|
image: "postgres:13-alpine"
|
||||||
environment:
|
environment:
|
||||||
@@ -25,7 +24,6 @@ services:
|
|||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
server:
|
server:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -38,7 +36,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
container_name: microservices_backend
|
container_name: microservices_backend
|
||||||
build:
|
build:
|
||||||
@@ -51,7 +48,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
database:
|
database:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -63,7 +59,6 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: microservices_network
|
name: microservices_network
|
Reference in New Issue
Block a user