bliss/docker-compose.example.yml

78 lines
1.9 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:
image: postgres:alpine
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
- DATABASE_URL=postgresql://postgres:postgrespw@postgres:5432/postgres
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-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:
2022-12-19 15:05:29 +00:00
- postgres
- redis
2022-12-20 02:58:48 +00:00
volumes:
2022-12-20 03:17:32 +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:
uploads: