bliss/docker-compose.example.yml

83 lines
2.0 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
networks:
- bliss
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:alpine
container_name: redis
restart: on-failure
networks:
- bliss
volumes:
- ./api/uploads:/app/uploads
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
2022-12-19 14:57:46 +00:00
networks:
- bliss
2022-12-18 06:59:59 +00:00
depends_on:
2022-12-18 10:18:12 +00:00
postgres:
condition: service_healthy
2022-12-18 06:59:59 +00:00
links:
- postgres
- redis
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-18 06:59:59 +00:00
networks:
- bliss
networks:
bliss:
driver: bridge