Files
upstream-watermill/_examples/real-world-examples/exactly-once-delivery-counter/docker-compose.yml
2026-09-15 21:27:46 +05:00

32 lines
644 B
YAML

services:
server:
image: golang:1.25
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./server:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: 'go run .'
worker:
image: golang:1.25
restart: unless-stopped
volumes:
- ./worker:/app
- $GOPATH/pkg/mod:/go/pkg/mod
working_dir: /app
command: 'go run .'
mysql:
image: mysql:8.0
restart: unless-stopped
ports:
- 3306:3306
environment:
MYSQL_DATABASE: example
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/schema.sql