|
| 1 | +version: '3' |
| 2 | + |
| 3 | +services: |
| 4 | + ####################################################### |
| 5 | + # EventStoreDB |
| 6 | + ####################################################### |
| 7 | + eventstoredb: |
| 8 | + # image: eventstore/eventstore:24.10.0-bookworm-slim |
| 9 | + # use this image if you're running ARM-based proc like Apple M1 |
| 10 | + image: eventstore/eventstore:24.10.0-alpha-arm64v8 |
| 11 | + environment: |
| 12 | + - EVENTSTORE_CLUSTER_SIZE=1 |
| 13 | + - EVENTSTORE_RUN_PROJECTIONS=All |
| 14 | + - EVENTSTORE_START_STANDARD_PROJECTIONS=true |
| 15 | + - EVENTSTORE_NODE_PORT=2113 |
| 16 | + - EVENTSTORE_INSECURE=true |
| 17 | + - EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true |
| 18 | + ports: |
| 19 | + - '1113:1113' |
| 20 | + - '2113:2113' |
| 21 | + volumes: |
| 22 | + - type: volume |
| 23 | + source: eventstore-volume-data |
| 24 | + target: /var/lib/eventstore |
| 25 | + - type: volume |
| 26 | + source: eventstore-volume-logs |
| 27 | + target: /var/log/eventstore |
| 28 | + networks: |
| 29 | + - esdb_network |
| 30 | + |
| 31 | + ####################################################### |
| 32 | + # MongoDB |
| 33 | + ####################################################### |
| 34 | + mongodb: |
| 35 | + image: mongo:6.0.12 |
| 36 | + # environment: |
| 37 | + # MONGO_INITDB_ROOT_USERNAME: root |
| 38 | + # MONGO_INITDB_ROOT_PASSWORD: rootpassword |
| 39 | + ports: |
| 40 | + - 27017:27017 |
| 41 | + volumes: |
| 42 | + - mongodb-data:/data/db |
| 43 | + networks: |
| 44 | + - mongodb_network |
| 45 | + |
| 46 | + mongo-express: |
| 47 | + image: mongo-express |
| 48 | + restart: always |
| 49 | + ports: |
| 50 | + - 8081:8081 |
| 51 | + environment: |
| 52 | + # ME_CONFIG_MONGODB_ADMINUSERNAME: root |
| 53 | + # ME_CONFIG_MONGODB_ADMINPASSWORD: example |
| 54 | + # ME_CONFIG_MONGODB_URL: mongodb://root:example@mongodb:27017/ |
| 55 | + ME_CONFIG_MONGODB_URL: mongodb://mongodb:27017/ |
| 56 | + networks: |
| 57 | + - mongodb_network |
| 58 | + |
| 59 | + ####################################################### |
| 60 | + # PostgreSQL |
| 61 | + ####################################################### |
| 62 | + postgres: |
| 63 | + image: postgres:15.1-alpine |
| 64 | + container_name: postgres |
| 65 | + environment: |
| 66 | + - POSTGRES_DB=postgres |
| 67 | + - POSTGRES_PASSWORD=postgres |
| 68 | + - POSTGRES_USER=postgres |
| 69 | + ports: |
| 70 | + - 5432:5432 |
| 71 | + networks: |
| 72 | + - postgresql_network |
| 73 | + |
| 74 | + pgadmin: |
| 75 | + image: dpage/pgadmin4 |
| 76 | + container_name: pgadmin |
| 77 | + environment: |
| 78 | + PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@pgadmin.org} |
| 79 | + PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin} |
| 80 | + ports: |
| 81 | + - '${PGADMIN_PORT:-5050}:80' |
| 82 | + networks: |
| 83 | + - postgresql_network |
| 84 | + |
| 85 | +networks: |
| 86 | + esdb_network: |
| 87 | + driver: bridge |
| 88 | + postgresql_network: |
| 89 | + driver: bridge |
| 90 | + mongodb_network: |
| 91 | + driver: bridge |
| 92 | + |
| 93 | +volumes: |
| 94 | + eventstore-volume-data: |
| 95 | + eventstore-volume-logs: |
| 96 | + mongodb-data: |
0 commit comments