-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
97 lines (93 loc) · 2.6 KB
/
docker-compose.dev.yml
File metadata and controls
97 lines (93 loc) · 2.6 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
services:
nginx:
image: nginx:1.27
ports:
- "80:80"
volumes:
- ./nginx/dev.conf:/etc/nginx/nginx.conf
depends_on:
client:
condition: service_healthy
restart: true
server:
condition: service_healthy
restart: true
client:
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- ./client:/app
- /app/node_modules
ports:
- "5173:5173"
environment:
- NODE_ENV=${NODE_ENV?REQUIRED}
depends_on:
server:
condition: service_healthy
restart: true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5173"]
interval: 30s
retries: 5
start_period: 10s
timeout: 5s
server:
build:
context: ./server
dockerfile: Dockerfile.dev
volumes:
- ./server:/app
- /app/node_modules
ports:
- "5001:5001"
environment:
- NODE_ENV=${NODE_ENV?REQUIRED}
- PORT=${PORT?REQUIRED}
- POSTGRES_HOST=${POSTGRES_HOST?REQUIRED}
- POSTGRES_PORT=5432
- POSTGRES_USER=${POSTGRES_USER?REQUIRED}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD?REQUIRED}
- POSTGRES_DB=${POSTGRES_DB?REQUIRED}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID?REQUIRED}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET?REQUIRED}
- GOOGLE_REDIRECT_URI=${GOOGLE_REDIRECT_URI?REQUIRED}
- ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID?REQUIRED}
- SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY?REQUIRED}
- S3_BUCKET_NAME=${S3_BUCKET_NAME?REQUIRED}
- S3_DEFAULT_IMAGE_PLACEHOLDER=${S3_DEFAULT_IMAGE_PLACEHOLDER?REQUIRED}
- S3_BUCKET_URL=${S3_BUCKET_URL?REQUIRED}
- SQS_QUEUE_URL=${NOTIFICATION_SERVICE_QUEUE_URL?REQUIRED}
- REGION=${AWS_REGION?REQUIRED}
- ROLE_ARN=${AWS_ROLE_ARN?REQUIRED}
- SENDER=${EMAIL_SENDER?REQUIRED}
- APPLICATION=${APPLICATION?REQUIRED}
depends_on:
db:
condition: service_healthy
restart: true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5001"]
interval: 30s
retries: 5
start_period: 5s
timeout: 5s
db:
image: postgres:17
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER?REQUIRED}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD?REQUIRED}
volumes:
- acm_website_db_data:/var/lib/postgresql/data
- ./db-scripts/dev:/docker-entrypoint-initdb.d/
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER?REQUIRED}"]
interval: 5s
timeout: 5s
retries: 5
start_period: 15s
volumes:
acm_website_db_data: