updated
This commit is contained in:
@@ -3,7 +3,7 @@ version: '3.8'
|
||||
services:
|
||||
email-api:
|
||||
container_name: email-api
|
||||
image: node:18-slim
|
||||
image: node:22-slim
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
volumes:
|
||||
@@ -27,8 +27,7 @@ services:
|
||||
- PGDATABASE=${PGDATABASE:-email_db}
|
||||
- PGPORT=${PGPORT:-5432}
|
||||
command: >
|
||||
bash -c "npm install express aws-sdk nodemailer emailjs-mime-parser emailjs-addressparser js-base64 winston dotenv axios pg &&
|
||||
node app.js"
|
||||
bash -c "npm install && node app.js"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
@@ -42,8 +41,8 @@ services:
|
||||
- POSTGRES_PASSWORD=${PGPASSWORD:-email_password}
|
||||
- POSTGRES_DB=${PGDATABASE:-email_db}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- email_postgres_data:/var/lib/postgresql/data
|
||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
email_postgres_data:
|
||||
Reference in New Issue
Block a user