-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.dev.yml
101 lines (93 loc) · 2.77 KB
/
docker-compose.dev.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
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
version: '3.8'
volumes:
postgres-data-dev:
networks:
# We explicitly define a subnet to avoid unintentional shadowing
default:
ipam:
config:
- subnet: 172.20.0.0/24
services:
gateway:
image: ${CADDY_IMAGE}
container_name: gateway-dev
volumes:
- ./caddy/config/Caddyfile:/etc/caddy/Caddyfile
- ./caddy/data:/data
depends_on:
- frontend
- server
ports:
- ${PORT}:80
restart: unless-stopped
postgres:
image: ${POSTGRES_IMAGE}
container_name: postgres-dev
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- ${DEV_POSTGRES_PORT}:5432
volumes:
- postgres-data-dev:/var/lib/postgresql/data
restart: unless-stopped
server:
container_name: server-dev
build:
context: ./server
dockerfile: Dockerfile.dev
volumes:
- ./server:/app
- ./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}
- AES_ENCRYPTION_KEY=${AES_ENCRYPTION_KEY}
- SECRET_TELEMETRY_KEY=${SECRET_TELEMETRY_KEY}
ports:
- ${DEV_SERVER_PORT}:3000
restart: unless-stopped
frontend:
container_name: frontend-dev
build:
context: ./frontend
dockerfile: Dockerfile.dev
environment:
- PUBLIC_APP_HOST=${PUBLIC_AI_AGENT_DOMAIN}
volumes:
- ./frontend:/app
ports:
- ${DEV_FRONTEND_PORT}:3000
depends_on:
- server
restart: unless-stopped
console:
container_name: console-dev
hostname: console
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}
build:
context: ./console
dockerfile: Dockerfile.dev
volumes:
- ./console:/app
ports:
- ${DEV_CONSOLE_PORT}:3000
depends_on:
- server
restart: unless-stopped