32 lines
567 B
YAML
32 lines
567 B
YAML
version: '3.8'
|
|
services:
|
|
go-api-product:
|
|
container_name: go-api-product
|
|
build:
|
|
context: ../api
|
|
restart: always
|
|
ports:
|
|
- "3003:3003"
|
|
links:
|
|
- postgres-db-api
|
|
depends_on:
|
|
- postgres-db-api
|
|
|
|
|
|
postgres-db-api:
|
|
container_name: postgres-db-api
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
|
|
frontend-product:
|
|
container_name: frontend-product
|
|
build:
|
|
context: ../spa
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- go-api-product |