-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
111 lines (103 loc) · 2.71 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '3.9'
services:
web:
image: docker.io/bref/fpm-dev-gateway:1.7.7
container_name: our-wedding-website-web
ports:
- 8080:80
volumes:
- ../app/public:/var/task/public
depends_on:
- php
networks:
- app
environment:
HANDLER: public/index.php
DOCUMENT_ROOT: public
php:
image: ghcr.io/eddmann/our-wedding-website:dev-dd8381a
#build:
# context: ../
# dockerfile: docker/Dockerfile
container_name: our-wedding-website-php
volumes:
- ../app:/var/task
depends_on:
- postgres
- dynamodb
- eventstoredb
networks:
- app
environment:
APP_ENV: dev
APP_SECRET: secret
MAILER_DSN: 'smtp://mailhog:1025'
EMAIL_NOTIFIER_TO: '[email protected]'
EMAIL_NOTIFIER_FROM: '[email protected]'
ADMIN_PASSWORD: password
PAGE_CONTENT: '{}'
EVENT_STORE_BACKEND: # Backend used for Event Store (Postgres, DynamoDb, EventStoreDb)
PROJECTION_BACKEND: # Backend use for Projections (Postgres, DynamoDb)
# Postgres-backend
DATABASE_URL: 'postgresql://user:password@postgres:5432/db?serverVersion=10.18&charset=utf8'
# DynamoDB-backend
DYNAMODB_ENDPOINT: 'http://dynamodb:8000'
DYNAMODB_EVENT_STORE_TABLE: event-store
DYNAMODB_PROJECTION_TABLE: projections
AWS_ACCESS_KEY_ID: id
AWS_SECRET_ACCESS_KEY: key
# EventStoreDB-backend
EVENTSTOREDB_URL: 'http://eventstoredb:2113'
postgres:
image: docker.io/postgres:10.18-alpine
container_name: our-wedding-website-postgres
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
networks:
- app
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
TZ: Europe/London
dynamodb:
image: docker.io/amazon/dynamodb-local:1.18.0
container_name: our-wedding-website-dynamodb
ports:
- 8000:8000
command:
- '-jar'
- 'DynamoDBLocal.jar'
- '-inMemory'
- '-sharedDb'
networks:
- app
eventstoredb:
image: ghcr.io/eventstore/eventstore:21.10.2-alpine
container_name: our-wedding-website-eventstoredb
ports:
- 2113:2113
networks:
- app
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=None
- EVENTSTORE_START_STANDARD_PROJECTIONS=false
- EVENTSTORE_HTTP_PORT=2113
- EVENTSTORE_INSECURE=true
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
- EVENTSTORE_MEM_DB=true
mailhog:
image: docker.io/mailhog/mailhog:v1.0.1
container_name: our-wedding-website-mailhog
ports:
- 8025:8025
networks:
- app
volumes:
postgres:
driver: local
networks:
app: