Skip to content

Commit

Permalink
rewrite vars
Browse files Browse the repository at this point in the history
  • Loading branch information
valeraBr committed Dec 12, 2023
1 parent 07e299e commit 3b358fc
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions examples/docker-compose-dev-with-users.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
services:
memphis-metadata:
image: memphisos/memphis-metadata:docker-15.2.0-debian-11-r27
healthcheck:
test: ["CMD-SHELL", "pg_isready -U memphis -p 5005"]
interval: 5s
timeout: 5s
retries: 5
networks:
- memphis
ports:
- '5005:5005'
environment:
POSTGRESQL_USERNAME: memphis
POSTGRESQL_PASSWORD: memphis
POSTGRESQL_DATABASE: memphis
POSTGRESQL_PORT_NUMBER: 5005
memphis:
image: "memphisos/memphis-master:master"
depends_on:
memphis-metadata:
condition: service_healthy
healthcheck:
test: wget http://127.0.0.1:9000 --spider || exit 1
interval: 10s
retries: 30
start_period: 5s
restart: on-failure
pull_policy: always
networks:
- memphis
ports:
- "9000:9000"
- "6666:6666"
- "7770:7770"
environment:
ROOT_PASSWORD: memphis
DOCKER_ENV: true
ENV: staging
USER_PASS_BASED_AUTH: true
CONNECTION_TOKEN: memphis
METADATA_DB_HOST: memphis-metadata
INITIAL_CONFIG_FILE: |
users:
mgmt:
- user: admin
password: Admin123456!
- user: test_mgmt
password: Test123456!
- user: test
password: Test123456@
client:
- user: test_app
password: Test123456!@
- user: test_app2
password: Test123456@!
volumes:
- /var/run/docker.sock:/var/run/docker.sock

memphis-rest-gateway:
image: "memphisos/memphis-rest-gateway:latest"
depends_on:
memphis:
condition: service_healthy
restart: on-failure
pull_policy: always
networks:
- memphis
ports:
- "4444:4444"
environment:
JWT_SECRET: JWT_TEST_PURPOSE
REFRESH_JWT_SECRET: REFRESH_JWT_TEST_PURPOSE
USER_PASS_BASED_AUTH: true
CONNECTION_TOKEN: memphis
ROOT_USER: root
ROOT_PASSWORD: memphis
MEMPHIS_HOST: memphis
HTTP_PORT: 4444
networks:
memphis:
ipam:
driver: default

0 comments on commit 3b358fc

Please sign in to comment.