2022-08-11 21:13:03 +00:00
|
|
|
version: "3.8"
|
2021-04-01 13:15:37 +00:00
|
|
|
|
2021-12-23 14:09:54 +00:00
|
|
|
x-logging: &default-logging
|
2021-04-01 13:15:37 +00:00
|
|
|
driver: json-file
|
|
|
|
options:
|
|
|
|
max-size: "10m"
|
|
|
|
max-file: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
environment:
|
2021-07-26 10:31:12 +00:00
|
|
|
- ACCOUNTS_ENABLED=true
|
2022-01-12 13:05:25 +00:00
|
|
|
- ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only
|
2021-04-01 13:15:37 +00:00
|
|
|
depends_on:
|
|
|
|
- accounts
|
|
|
|
|
2021-05-05 12:18:10 +00:00
|
|
|
health-check:
|
|
|
|
environment:
|
2021-07-26 10:31:12 +00:00
|
|
|
- ACCOUNTS_ENABLED=true
|
2022-01-20 11:00:34 +00:00
|
|
|
- ACCOUNTS_LIMIT_ACCESS=${ACCOUNTS_LIMIT_ACCESS:-authenticated} # default to authenticated access only
|
2021-05-05 12:18:10 +00:00
|
|
|
|
2021-04-01 13:15:37 +00:00
|
|
|
accounts:
|
2022-04-22 17:50:28 +00:00
|
|
|
# uncomment "build" and comment out "image" to build from sources
|
|
|
|
# build: https://github.com/SkynetLabs/skynet-accounts.git#main
|
2022-08-01 10:55:18 +00:00
|
|
|
image: skynetlabs/skynet-accounts:1.3.0
|
2021-04-01 13:15:37 +00:00
|
|
|
container_name: accounts
|
|
|
|
restart: unless-stopped
|
|
|
|
logging: *default-logging
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
2021-12-08 16:39:02 +00:00
|
|
|
- ACCOUNTS_EMAIL_URI=${ACCOUNTS_EMAIL_URI}
|
|
|
|
- ACCOUNTS_JWKS_FILE=/conf/jwks.json
|
2021-04-01 13:15:37 +00:00
|
|
|
- COOKIE_DOMAIN=${COOKIE_DOMAIN}
|
|
|
|
- COOKIE_HASH_KEY=${COOKIE_HASH_KEY}
|
|
|
|
- COOKIE_ENC_KEY=${COOKIE_ENC_KEY}
|
2021-12-08 16:39:02 +00:00
|
|
|
- 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}
|
2021-04-01 13:15:37 +00:00
|
|
|
- STRIPE_API_KEY=${STRIPE_API_KEY}
|
|
|
|
- STRIPE_WEBHOOK_SECRET=${STRIPE_WEBHOOK_SECRET}
|
2021-12-08 16:39:02 +00:00
|
|
|
- SKYNET_ACCOUNTS_LOG_LEVEL=${SKYNET_ACCOUNTS_LOG_LEVEL:-info}
|
2021-11-13 00:13:34 +00:00
|
|
|
volumes:
|
|
|
|
- ./docker/data/accounts:/data
|
2021-12-03 11:42:39 +00:00
|
|
|
- ./docker/accounts/conf:/conf
|
2021-04-01 13:15:37 +00:00
|
|
|
expose:
|
|
|
|
- 3000
|
|
|
|
networks:
|
|
|
|
shared:
|
|
|
|
ipv4_address: 10.10.10.70
|
|
|
|
depends_on:
|
|
|
|
- mongo
|
|
|
|
|
|
|
|
dashboard:
|
2022-04-21 08:48:53 +00:00
|
|
|
# uncomment "build" and comment out "image" to build from sources
|
|
|
|
# build:
|
2022-05-25 19:04:13 +00:00
|
|
|
# context: https://github.com/SkynetLabs/webportal-accounts-dashboard.git#main
|
2022-05-25 14:53:55 +00:00
|
|
|
# dockerfile: Dockerfile
|
2022-09-13 10:44:12 +00:00
|
|
|
image: skynetlabs/webportal-accounts-dashboard:2.1.1
|
2021-04-01 13:15:37 +00:00
|
|
|
container_name: dashboard
|
|
|
|
restart: unless-stopped
|
|
|
|
logging: *default-logging
|
|
|
|
env_file:
|
|
|
|
- .env
|
2021-12-08 16:39:02 +00:00
|
|
|
volumes:
|
2022-06-01 12:25:21 +00:00
|
|
|
- ./docker/data/dashboard/.cache:/usr/app/.cache
|
|
|
|
- ./docker/data/dashboard/public:/usr/app/public
|
2021-04-01 13:15:37 +00:00
|
|
|
networks:
|
|
|
|
shared:
|
|
|
|
ipv4_address: 10.10.10.85
|
|
|
|
expose:
|
2022-06-01 12:25:21 +00:00
|
|
|
- 9000
|
2021-04-01 20:49:16 +00:00
|
|
|
depends_on:
|
2021-11-13 00:13:34 +00:00
|
|
|
- mongo
|