31 lines
655 B
YAML
31 lines
655 B
YAML
version: '3.8'
|
|
|
|
networks:
|
|
app-network:
|
|
driver: bridge
|
|
|
|
services:
|
|
backend-prod:
|
|
image: backend-prod
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
container_name: backend-prod
|
|
networks:
|
|
- app-network
|
|
ports:
|
|
#update to suit your needs (3000:5000 would expose the API as port 3000 on the host machine, for example)
|
|
- "5000:5000"
|
|
|
|
timescaledb-prod:
|
|
image: timescale/timescaledb-ha:pg16
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_PASSWORD=password
|
|
restart: unless-stopped
|
|
container_name: timescaledb-prod
|
|
networks:
|
|
- app-network
|