bliss/docker-compose.example.yml

88 lines
2.3 KiB
YAML
Raw Normal View History

2022-12-18 06:59:59 +00:00
version: '3.9'
services:
api:
2022-12-18 08:35:56 +00:00
image: ghcr.io/renzynx/bliss:latest
2022-12-18 06:59:59 +00:00
container_name: bliss_api
restart: always
environment:
2022-12-18 08:35:56 +00:00
- NODE_ENV=production
2022-12-18 08:50:29 +00:00
- DATABASE_URL=postgresql://postgres:postgrespw@bliss_postgres:5432/postgres
- REDIS_URL=redis://bliss_redis:6379
2022-12-18 06:59:59 +00:00
# should be your frontend domain
# e.g. https://amog-us.club
2022-12-18 08:50:29 +00:00
- CORS_ORIGIN=http://localhost:3000
2022-12-18 06:59:59 +00:00
# just smash random keys on your keyboard or use a password generator
2022-12-18 08:50:29 +00:00
- SESSION_SECRET=123
2022-12-18 06:59:59 +00:00
# set to "true" if you want to use email verification
- USE_MAIL=false
- MAIL_HOST=
- MAIL_PORT=
- MAIL_USERNAME=
- MAIL_PASSWORD=
# e.g. ServiceName <noreply@domain.com>
- MAIL_FROM=
# should be local or s3, s3 doesn't work yet
- UPLOADER=local
# set to "true" if you are going to use a reverse proxy
- USE_PROXY=false
# set to "true" if you are going to use SSL
- USE_SSL=false
# port for the container to listen on
- PORT=3000
ports:
# 👇 Change this to whatever port you want
- 8080:3000
depends_on:
- postgres
- redis
links:
- postgres
- redis
networks:
- bliss
volumes:
- ./uploads:/app/uploads
- ./thumbnails:/app/thumbnails
web:
2022-12-18 08:35:56 +00:00
image: ghcr.io/renzynx/web:latest
2022-12-18 06:59:59 +00:00
container_name: bliss_web
restart: always
environment:
# should be your backend domain name
# e.g. https://uploads.amog-us.club
- NEXT_PUBLIC_API_URL=
# optional values
# if you want to use the default values, just leave them empty
# this is the limit of file size a user can upload when they are verified
# the default value is 2GB
- NEXT_PUBLIC_USER_VERIFED_LIMIT=
# the opposite
# the default value is 500MB
- NEXT_PUBLIC_USER_NOT_VERIFED_LIMIT=
ports:
# 👇 Change this to whatever port you want
- 8500:5000
networks:
- bliss
postgres:
image: postgres:alpine
container_name: bliss_postgres
restart: always
environment:
- POSTGRES_PASSWORD=postgrespw
networks:
- bliss
redis:
image: redis:alpine
container_name: bliss_redis
restart: on-failure
networks:
- bliss
networks:
bliss:
driver: bridge