Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: '3.9'

services:
python:
build:
context: ./apps/python
container_name: sample-python
ports:
- "3004:3004"
environment:
PORT: 3004
networks:
- app-net
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; exit(0) if urllib.request.urlopen('http://localhost:3004/health').getcode() == 200 else exit(1)"]
interval: 10s
timeout: 5s
retries: 5
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

go:
build:
context: ./apps/go
container_name: sample-go
ports:
- "3002:3002"
environment:
PORT: 3002
networks:
- app-net
depends_on:
python:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:3002/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

networks:
app-net:
driver: bridge
26 changes: 0 additions & 26 deletions sample-compose-fixed.yaml

This file was deleted.