2021-04-01 13:15:37 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
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-05-16 14:30:41 +00:00
|
|
|
image: skynetlabs/skynet-accounts:1.1.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:
|
|
|
|
# context: https://github.com/SkynetLabs/skynet-webportal.git#master
|
|
|
|
# dockerfile: ./packages/dashboard/Dockerfile
|
2022-05-17 12:36:48 +00:00
|
|
|
image: skynetlabs/dashboard:deploy-2022-05-17
|
2021-04-01 13:15:37 +00:00
|
|
|
container_name: dashboard
|
|
|
|
restart: unless-stopped
|
|
|
|
logging: *default-logging
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
2022-02-09 13:13:53 +00:00
|
|
|
- NEXT_PUBLIC_PORTAL_DOMAIN=${PORTAL_DOMAIN}
|
2021-04-01 13:15:37 +00:00
|
|
|
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
|
2021-12-08 16:39:02 +00:00
|
|
|
volumes:
|
|
|
|
- ./docker/data/dashboard/.next:/usr/app/.next
|
2021-04-01 13:15:37 +00:00
|
|
|
networks:
|
|
|
|
shared:
|
|
|
|
ipv4_address: 10.10.10.85
|
|
|
|
expose:
|
|
|
|
- 3000
|
2021-04-01 20:49:16 +00:00
|
|
|
depends_on:
|
2021-11-13 00:13:34 +00:00
|
|
|
- mongo
|
2022-04-07 10:59:20 +00:00
|
|
|
|
2022-05-17 12:34:38 +00:00
|
|
|
# Do not build dashboard-v2 until we're ready to make a switch
|
|
|
|
# ============================================================
|
|
|
|
# dashboard-v2:
|
|
|
|
# build:
|
|
|
|
# context: ./packages/dashboard-v2
|
|
|
|
# dockerfile: Dockerfile
|
|
|
|
# container_name: dashboard-v2
|
|
|
|
# restart: unless-stopped
|
|
|
|
# logging: *default-logging
|
|
|
|
# env_file:
|
|
|
|
# - .env
|
|
|
|
# environment:
|
|
|
|
# - GATSBY_PORTAL_DOMAIN=${PORTAL_DOMAIN}
|
|
|
|
# - GATSBY_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
|
|
|
|
# volumes:
|
|
|
|
# - ./docker/data/dashboard-v2/.cache:/usr/app/.cache
|
|
|
|
# - ./docker/data/dashboard-v2/public:/usr/app/public
|
|
|
|
# networks:
|
|
|
|
# shared:
|
|
|
|
# ipv4_address: 10.10.10.86
|
|
|
|
# expose:
|
|
|
|
# - 9000
|
|
|
|
# depends_on:
|
|
|
|
# - mongo
|