forked from CapSoftware/Cap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (27 loc) · 937 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (27 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: "3.9"
# name: cap-aws-docker
# Docker Compose configuration for Cap using AWS RDS and S3
# Environment variables are loaded from .env file in the same directory
services:
cap-web:
container_name: cap-web
image: ghcr.io/capsoftware/cap-web:latest
restart: unless-stopped
env_file:
- .env
environment:
# Database URL constructed from environment variables
DATABASE_URL: mysql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
# Application URLs
WEB_URL: ${WEB_URL}
NEXTAUTH_URL: ${NEXTAUTH_URL}
# Security Keys
DATABASE_ENCRYPTION_KEY: ${DATABASE_ENCRYPTION_KEY}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
# AWS S3 Configuration
CAP_AWS_ACCESS_KEY: ${CAP_AWS_ACCESS_KEY}
CAP_AWS_SECRET_KEY: ${CAP_AWS_SECRET_KEY}
CAP_AWS_BUCKET: ${CAP_AWS_BUCKET}
CAP_AWS_REGION: ${CAP_AWS_REGION}
ports:
- 8001:3000