-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
156 lines (133 loc) · 3.61 KB
/
docker-compose.yml
File metadata and controls
156 lines (133 loc) · 3.61 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: base-acl-api
restart: always
ports:
- '3334:3333'
depends_on:
- postgres
- redis
env_file:
- .env
environment:
TZ: ${TZ}
PORT: ${PORT}
HOST: ${HOST}
LOG_LEVEL: ${LOG_LEVEL}
APP_KEY: ${APP_KEY}
NODE_ENV: ${NODE_ENV}
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
REFRESH_TOKEN_SECRET: ${REFRESH_TOKEN_SECRET}
DB_HOST: postgres
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis}
# Web Clients
DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID}
DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET}
FACEBOOK_CLIENT_ID: ${FACEBOOK_CLIENT_ID}
FACEBOOK_CLIENT_SECRET: ${FACEBOOK_CLIENT_SECRET}
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
LINKEDIN_CLIENT_ID: ${LINKEDIN_CLIENT_ID}
LINKEDIN_CLIENT_SECRET: ${LINKEDIN_CLIENT_SECRET}
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID}
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET}
TWITTER_CLIENT_ID: ${TWITTER_CLIENT_ID}
TWITTER_CLIENT_SECRET: ${TWITTER_CLIENT_SECRET}
# SMTP
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
# Drive
DRIVE_DISK: ${DRIVE_DISK}
# AWS
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
AWS_REGION: ${AWS_REGION}
# S3
S3_BUCKET: ${S3_BUCKET}
# Digital Ocean Spaces
SPACES_KEY: ${SPACES_KEY}
SPACES_SECRET: ${SPACES_SECRET}
SPACES_REGION: ${SPACES_REGION}
SPACES_BUCKET: ${SPACES_BUCKET}
SPACES_ENDPOINT: ${SPACES_ENDPOINT}
# R2
R2_KEY: ${R2_KEY}
R2_SECRET: ${R2_SECRET}
R2_BUCKET: ${R2_BUCKET}
R2_ENDPOINT: ${R2_ENDPOINT}
# GCS
GCS_KEY: ${GCS_KEY}
GCS_BUCKET: ${GCS_BUCKET}
networks:
- app-network
postgres:
image: postgres:16
container_name: base-acl-postgres
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${DB_USER} -d ${DB_DATABASE}']
timeout: 45s
interval: 10s
retries: 10
restart: always
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_DATABASE}
ports:
- '5432:5432'
expose:
- 5432
volumes:
- database:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- app-network
redis:
image: redis:latest
container_name: base-acl-redis
restart: always
ports:
- '6379:6379'
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis}
command: redis-server --requirepass ${REDIS_PASSWORD:-redis}
volumes:
- redis-data:/data
networks:
- app-network
postgrest:
image: postgrest/postgrest:latest
container_name: base-acl-postgrest
restart: always
ports:
- '3000:3000'
environment:
PGRST_DB_URI: postgres://${DB_USER}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE}
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: web_anon
PGRST_JWT_SECRET: ${APP_KEY}
PGRST_SERVER_PORT: 3000
depends_on:
- postgres
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
database:
redis-data: