-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
76 lines (68 loc) · 2.13 KB
/
docker-compose.yml
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
version: '3.8'
volumes:
postgres-data:
networks:
# We explicitly define a subnet to avoid unintentional shadowing
default:
ipam:
config:
- subnet: 172.20.0.0/24
services:
gateway:
image: ${CADDY_IMAGE}
volumes:
- ./caddy/config/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/data:/data
ports:
- ${PORT}:80
depends_on:
- frontend
- server
restart: unless-stopped
frontend:
image: ${FRONTEND_IMAGE}
depends_on:
- server
restart: unless-stopped
environment:
- PUBLIC_APP_HOST=${PUBLIC_AI_AGENT_DOMAIN}
console:
image: ${CONSOLE_IMAGE}
environment:
- PUBLIC_AI_AGENT_DOMAIN=${PUBLIC_AI_AGENT_DOMAIN}
- PUBLIC_OAUTH_GOOGLE_CLIENT_ID=${PUBLIC_OAUTH_GOOGLE_CLIENT_ID}
- PUBLIC_TELEMETRY_KEY=${PUBLIC_TELEMETRY_KEY}
- PUBLIC_DISCORD_URL=${PUBLIC_DISCORD_URL}
- PUBLIC_INTERCOM_APP_ID=${INTERCOM_APP_ID}
depends_on:
- server
restart: unless-stopped
postgres:
image: ${POSTGRES_IMAGE}
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
server:
image: ${SERVER_IMAGE}
volumes:
- ./attachments/data:/app/attachments
environment:
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
- USERS_ACCESS_TOKEN_SECRET=${USERS_ACCESS_TOKEN_SECRET}
- MEMBERS_ACCESS_TOKEN_SECRET=${MEMBERS_ACCESS_TOKEN_SECRET}
- MEMBERS_AUTH_CODE_EXPIRATION_DELAY_IN_MINUTES=${MEMBERS_AUTH_CODE_EXPIRATION_DELAY_IN_MINUTES}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- EMAIL_SENDER_ADDRESS=${EMAIL_SENDER_ADDRESS}
- EMAIL_SENDER_NAME=${EMAIL_SENDER_NAME}
- USERS_OAUTH_GOOGLE_CLIENT_ID=${USERS_OAUTH_GOOGLE_CLIENT_ID}
- USERS_OAUTH_GOOGLE_CLIENT_SECRET=${USERS_OAUTH_GOOGLE_CLIENT_SECRET}
depends_on:
- postgres
restart: unless-stopped