-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.73 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
services:
# Backend Server
server:
image: socialapp-server:latest
container_name: socialapp-server
build:
context: ./server
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- PORT=8080
- ENV=production
- JWT_SECRET=${JWT_SECRET}
- DSN=${DSN}
- CLOUDINARY_URL=${CLOUDINARY_URL}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GOOGLE_REDIRECT_URL=${GOOGLE_REDIRECT_URL}
- RECAPTCHA_SECRET_KEY=${RECAPTCHA_SECRET_KEY}
- MAILTRAP_TOKEN=${MAILTRAP_TOKEN}
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USER=${SMTP_USER}
- SMTP_PASSWORD=${SMTP_PASSWORD}
restart: unless-stopped
networks:
- socialapp-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Frontend Client
client:
image: socialapp-client:latest
container_name: socialapp-client
build:
context: ./client
dockerfile: Dockerfile
args:
- VITE_API_URL=http://maqsatto.tech/api
- VITE_WS_URL=ws://maqsatto.tech/ws
- VITE_GOOGLE_CLIENT_ID=78805272321-hh7q631f2pj8ljv4rm6fvtoet9rguho1.apps.googleusercontent.com
- VITE_RECAPTCHA_SITE_KEY=6LdE4Q0sAAAAAJK7dB03Q2S0CfdJe1A3yQ3x0p_m
ports:
- "8081:80"
depends_on:
- server
restart: unless-stopped
networks:
- socialapp-network
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
networks:
socialapp-network:
driver: bridge