version: "3.7" x-logging: &default-logging driver: json-file options: max-size: "10m" max-file: "3" services: nginx: environment: - ACCOUNTS_ENABLED=true - ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only depends_on: - accounts health-check: environment: - ACCOUNTS_ENABLED=true - ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only accounts: # uncomment "build" and comment out "image" to build from sources # build: https://github.com/SkynetLabs/skynet-accounts.git#main image: skynetlabs/skynet-accounts:1.2.3 container_name: accounts restart: unless-stopped logging: *default-logging env_file: - .env environment: - ACCOUNTS_EMAIL_URI=${ACCOUNTS_EMAIL_URI} - ACCOUNTS_JWKS_FILE=/conf/jwks.json - COOKIE_DOMAIN=${COOKIE_DOMAIN} - COOKIE_HASH_KEY=${COOKIE_HASH_KEY} - COOKIE_ENC_KEY=${COOKIE_ENC_KEY} - PORTAL_DOMAIN=${PORTAL_DOMAIN} - SERVER_DOMAIN=${SERVER_DOMAIN} - SKYNET_DB_HOST=${SKYNET_DB_HOST:-mongo} - SKYNET_DB_PORT=${SKYNET_DB_PORT:-27017} - SKYNET_DB_USER=${SKYNET_DB_USER} - SKYNET_DB_PASS=${SKYNET_DB_PASS} - STRIPE_API_KEY=${STRIPE_API_KEY} - STRIPE_WEBHOOK_SECRET=${STRIPE_WEBHOOK_SECRET} - SKYNET_ACCOUNTS_LOG_LEVEL=${SKYNET_ACCOUNTS_LOG_LEVEL:-info} volumes: - ./docker/data/accounts:/data - ./docker/accounts/conf:/conf expose: - 3000 networks: shared: ipv4_address: 10.10.10.70 depends_on: - mongo dashboard: # uncomment "build" and comment out "image" to build from sources # build: # context: https://github.com/SkynetLabs/webportal-accounts-dashboard.git#main # dockerfile: Dockerfile image: skynetlabs/webportal-accounts-dashboard:2.0.0 container_name: dashboard restart: unless-stopped logging: *default-logging env_file: - .env volumes: - ./docker/data/dashboard/.cache:/usr/app/.cache - ./docker/data/dashboard/public:/usr/app/public networks: shared: ipv4_address: 10.10.10.85 expose: - 9000 depends_on: - mongo