Skip to content
Open
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
11 changes: 8 additions & 3 deletions service/runway/server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,23 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

runway-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-runway-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/runway/server/Dockerfile
Expand Down
21 changes: 15 additions & 6 deletions service/stovepipe/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,41 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

# Queue database - messaging infrastructure (messages, offsets, partition leases).
mysql-queue:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

stovepipe-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-stovepipe-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/stovepipe/server/Dockerfile
Expand Down
23 changes: 17 additions & 6 deletions service/submitqueue/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

# Queue Database - Messaging infrastructure (messages, offsets, partition leases)
# Separate from app DB to demonstrate queue is pluggable infrastructure
Expand All @@ -33,15 +37,20 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

gateway-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-gateway-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/submitqueue/gateway/server/Dockerfile
Expand All @@ -64,6 +73,7 @@ services:
condition: service_healthy

orchestrator-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-orchestrator-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/submitqueue/orchestrator/server/Dockerfile
Expand All @@ -88,6 +98,7 @@ services:
# needs the queue DB (shared with the orchestrator over mysql-queue); it has
# no application database of its own.
runway-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-runway-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/runway/server/Dockerfile
Expand Down
21 changes: 15 additions & 6 deletions service/submitqueue/gateway/server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

# Queue Database - Messaging infrastructure (messages, offsets, partition leases)
# Separate from app DB to demonstrate queue is pluggable infrastructure
Expand All @@ -33,15 +37,20 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

gateway-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-gateway-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/submitqueue/gateway/server/Dockerfile
Expand Down
21 changes: 15 additions & 6 deletions service/submitqueue/orchestrator/server/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

# Queue Database - Messaging infrastructure (messages, offsets, partition leases)
# Separate from app DB to demonstrate queue is pluggable infrastructure
Expand All @@ -33,15 +37,20 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60

orchestrator-service:
image: ${SQ_DOCKER_IMAGE_PREFIX:-submitqueue}-orchestrator-service:latest
build:
context: ${REPO_ROOT}
dockerfile: service/submitqueue/orchestrator/server/Dockerfile
Expand Down
10 changes: 7 additions & 3 deletions test/integration/extension/counter/mysql/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ services:
MYSQL_ROOT_PASSWORD: root
# Database name must match the shared testutil DSN (ConnectMySQLService).
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60
10 changes: 7 additions & 3 deletions test/integration/submitqueue/core/consumer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ services:
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: submitqueue
MYSQL_INITDB_SKIP_TZINFO: ${SQ_MYSQL_INITDB_SKIP_TZINFO:-}
ports:
- "3306" # Random ephemeral port to avoid conflicts
volumes:
- type: ${SQ_MYSQL_DATA_MOUNT_TYPE:-volume}
target: /var/lib/mysql
healthcheck:
# Use 127.0.0.1 (TCP) instead of localhost (Unix socket). MySQL treats
# "localhost" as a socket connection, which can be ready before the TCP
# listener — causing dependent services that connect over TCP to fail.
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-proot"]
interval: 5s
timeout: 5s
retries: 10
interval: 1s
timeout: 2s
retries: 60
Loading
Loading