bliss/docker-compose.example.yml

87 lines
2.1 KiB
YAML
Raw Normal View History

2022-12-18 06:59:59 +00:00
version: '3.9'
services:
2022-12-19 14:57:46 +00:00
postgres:
2022-12-20 04:27:40 +00:00
image: postgres:latest
2022-12-19 14:57:46 +00:00
container_name: postgres
restart: always
environment:
- POSTGRES_PASSWORD=postgrespw
2022-12-19 15:05:29 +00:00
- POSTGRES_DATABASE=postgres
2022-12-19 14:57:46 +00:00
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
2022-12-20 02:58:48 +00:00
volumes:
- postgres:/var/lib/postgresql/data
2022-12-19 14:57:46 +00:00
redis:
image: redis:alpine
container_name: redis
restart: on-failure
volumes:
2022-12-20 02:58:48 +00:00
- redis:/data
2022-12-19 15:05:29 +00:00
2022-12-18 06:59:59 +00:00
api:
2022-12-19 12:19:55 +00:00
image: ghcr.io/renzynx/bliss:latest
2022-12-18 10:18:12 +00:00
container_name: api
2022-12-18 06:59:59 +00:00
restart: always
environment:
2022-12-18 08:35:56 +00:00
- NODE_ENV=production
2022-12-20 07:07:53 +00:00
- DATABASE_URL=postgresql://postgres:postgrespw@postgres:5432/postgres?schema=public&connect_timeout=300
2022-12-18 10:21:45 +00:00
- REDIS_URL=redis://redis:6379
2022-12-18 06:59:59 +00:00
# should be your frontend domain
# e.g. https://amog-us.club
2022-12-18 09:10:29 +00:00
- CORS_ORIGIN=
2022-12-18 06:59:59 +00:00
# just smash random keys on your keyboard or use a password generator
2022-12-20 07:07:53 +00:00
- SESSION_SECRET=
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=
2022-12-20 09:45:13 +00:00
- MAIL_USER=
- MAIL_PASS=
2022-12-18 06:59:59 +00:00
# e.g. ServiceName <noreply@domain.com>
- MAIL_FROM=
# 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
2022-12-30 05:05:39 +00:00
# should be local or s3
- UPLOADER=local
# s3 config (only needed if you are using s3)
- S3_ENDPOINT=
- S3_ACCESS_KEY_ID=
- S3_SECRET_ACCESS_KEY=
- S3_BUCKET_NAME=
- S3_REGION=
# optional
- COOKIE_NAME=
2022-12-18 06:59:59 +00:00
ports:
# 👇 Change this to whatever port you want
- 8080:3000
depends_on:
2022-12-19 15:05:29 +00:00
- postgres
- redis
2022-12-20 02:58:48 +00:00
volumes:
2022-12-20 07:07:53 +00:00
- ./uploads:/app/uploads
2022-12-18 10:18:12 +00:00
2022-12-18 06:59:59 +00:00
web:
2022-12-19 12:19:55 +00:00
image: ghcr.io/renzynx/web:latest
2022-12-18 10:18:12 +00:00
container_name: web
2022-12-18 06:59:59 +00:00
restart: always
ports:
# 👇 Change this to whatever port you want
- 8500:5000
2022-12-19 02:29:46 +00:00
environment:
# should be your backend domain e.g. https://uploads.amog-us.club
- NEXT_PUBLIC_API_URL=
2022-12-20 02:58:48 +00:00
volumes:
postgres:
redis: