unkown commit
This commit is contained in:
24
docker/cassandra/init.cql
Normal file
24
docker/cassandra/init.cql
Normal file
@@ -0,0 +1,24 @@
|
||||
-- Create keyspace
|
||||
CREATE KEYSPACE IF NOT EXISTS event_store
|
||||
WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1};
|
||||
|
||||
USE event_store;
|
||||
|
||||
-- Create events table
|
||||
CREATE TABLE IF NOT EXISTS events (
|
||||
aggregate_id text,
|
||||
version int,
|
||||
event_type text,
|
||||
payload text,
|
||||
created_at timestamp,
|
||||
PRIMARY KEY (aggregate_id, version)
|
||||
) WITH CLUSTERING ORDER BY (version ASC)
|
||||
AND comment = 'Event store for domain events'
|
||||
AND compaction = {'class': 'LeveledCompactionStrategy'}
|
||||
AND gc_grace_seconds = 864000;
|
||||
|
||||
-- Create index on event_type for querying
|
||||
CREATE INDEX IF NOT EXISTS events_event_type_idx ON events (event_type);
|
||||
|
||||
-- Create index on created_at for time-based queries
|
||||
CREATE INDEX IF NOT EXISTS events_created_at_idx ON events (created_at);
|
||||
@@ -26,7 +26,7 @@ server {
|
||||
# 3. Block to pass PHP scripts to PHP-FPM
|
||||
location ~ \.php$ {
|
||||
# This remains the same to execute any file ending in .php
|
||||
fastcgi_pass app:9000; # 'app' is the name of your PHP-FPM service
|
||||
fastcgi_pass php:9000; # 'php' is the name of your PHP-FPM service
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
|
||||
0
docker/php/Dockerfile
Normal file
0
docker/php/Dockerfile
Normal file
Reference in New Issue
Block a user