@@ -9,44 +9,49 @@ services:
9
9
container_name : emmett_api
10
10
profiles : [app]
11
11
environment :
12
- - ESDB_CONNECTION_STRING=esdb ://eventstoredb:2113?tls=false
12
+ - POSTGRESQL_CONNECTION_STRING=postgresql ://postgres:postgres@postgres:5432/postgres
13
13
networks :
14
- - esdb_network
14
+ - postgresql_network
15
15
ports :
16
16
- ' 3000:3000'
17
17
18
18
# ######################################################
19
- # EventStoreDB
19
+ # PostgreSQL
20
20
# ######################################################
21
- eventstoredb :
22
- image : eventstore/eventstore:23.10.0-bookworm-slim
23
- # use this image if you're running ARM-based proc like Apple M1
24
- # image: eventstore/eventstore:23.10.0-alpha-arm64v8
25
- container_name : eventstoredb
21
+ postgres :
22
+ image : postgres:15.1-alpine
23
+ ports :
24
+ - ' 5432:5432'
25
+ environment :
26
+ - POSTGRES_DB=postgres
27
+ - POSTGRES_PASSWORD=postgres
28
+ - POSTGRES_USER=postgres
29
+ networks :
30
+ - postgresql_network
31
+
32
+ pgadmin :
33
+ container_name : pgadmin_container
34
+ image : dpage/pgadmin4
26
35
environment :
27
- - EVENTSTORE_CLUSTER_SIZE=1
28
- - EVENTSTORE_RUN_PROJECTIONS=All
29
- - EVENTSTORE_START_STANDARD_PROJECTIONS=true
30
- - EVENTSTORE_EXT_TCP_PORT=1113
31
- - EVENTSTORE_HTTP_PORT=2113
32
- - EVENTSTORE_INSECURE=true
33
- - EVENTSTORE_ENABLE_EXTERNAL_TCP=true
34
- - EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
36
+ - PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
37
+ - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD:-postgres}
38
+ - PGADMIN_CONFIG_SERVER_MODE=False
39
+ - PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
35
40
ports :
36
- - ' 1113:1113'
37
- - ' 2113:2113'
41
+ - ' ${PGADMIN_PORT:-5050}:80'
42
+ entrypoint : /bin/sh -c "chmod 600 /pgpass; /entrypoint.sh;"
43
+ user : root
38
44
volumes :
39
- - type : volume
40
- source : eventstore-volume-data
41
- target : /var/lib/eventstore
42
- - type : volume
43
- source : eventstore-volume-logs
44
- target : /var/log/eventstore
45
+ - ./docker/pgAdmin/pgpass:/pgpass
46
+ - ./docker/pgAdmin/servers.json:/pgadmin4/servers.json
47
+ depends_on :
48
+ - postgres
49
+ restart : unless-stopped
45
50
networks :
46
- - esdb_network
51
+ - postgresql_network
47
52
48
53
networks :
49
- esdb_network :
54
+ postgresql_network :
50
55
driver : bridge
51
56
52
57
volumes :
0 commit comments