website/compose.yml

38 lines
1.4 KiB
YAML
Raw Normal View History

2022-11-10 00:12:34 +05:30
services:
2022-12-30 23:26:51 +05:30
website:
container_name: website
2023-01-11 00:28:52 +05:30
image: realprojectsegfault/website:latest # or :dev if you want to use the dev version
2022-12-30 23:26:51 +05:30
restart: unless-stopped
2023-01-11 00:28:52 +05:30
# uncomment these lines if you want to build from source
#build:
# context: .
# dockerfile: Dockerfile
2022-11-10 00:12:34 +05:30
ports:
2023-01-11 00:28:52 +05:30
- 1339:3000 # change the first number to whatever port you want to use
environment: # these are documented in the readme
2022-12-31 23:44:28 +05:30
AUTH_SECRET: ${AUTH_SECRET}
AUTH_CLIENT_ID: ${AUTH_CLIENT_ID}
AUTH_CLIENT_SECRET: ${AUTH_CLIENT_SECRET}
AUTH_ISSUER: ${AUTH_ISSUER}
2023-01-11 00:28:52 +05:30
AUTH_TRUST_HOST: ${AUTH_TRUST_HOST}
2022-12-31 23:44:28 +05:30
HCAPTCHA_SECRET: ${HCAPTCHA_SECRET}
HCAPTCHA_SITEKEY: ${HCAPTCHA_SITEKEY}
WEBHOOK: ${WEBHOOK}
2023-01-11 00:28:52 +05:30
GHOST_API_KEY: ${GHOST_API_KEY}
DB_URL: ${DB_URL}
ORIGIN: ${ORIGIN}
2022-12-31 23:44:28 +05:30
2023-01-11 00:28:52 +05:30
website-db: # this is the mongodb database container
image: mongo:6
2022-12-30 23:26:51 +05:30
container_name: website-db
restart: unless-stopped
2023-01-10 19:43:53 +05:30
volumes:
- website-db-data:/data/db
2023-01-11 00:28:52 +05:30
environment: # these are documented in the readme
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
2023-01-10 19:43:53 +05:30
MONGO_INITDB_DATABASE: website
command: [--auth]
volumes:
2022-12-30 23:26:51 +05:30
website-db-data: