-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.07 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
services:
mongo_prod:
profiles:
- prod
image: mongo:latest
expose:
- 27017
restart: always
environment:
MONGO_INITDB_DATABASE: ${DB}
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
mongo:
profiles:
- dev
image: mongo:latest
ports:
- "27017:27017"
restart: always
environment:
MONGO_INITDB_DATABASE: ${DB}
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
server:
profiles:
- prod
build: .
ports:
- "${PORT}:${PORT}"
restart: always
environment:
PORT: ${PORT}
HOST: ${HOST}
NEXT_HOST: ${NEXT_HOST}
MONGODB_URI: mongodb://${DB_USER}:${DB_PASSWORD}@mongo_prod:27017?retryWrites=true&w=majority
NEXTAUTH_URL: ${NEXTAUTH_URL}
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
SMTP_USER: ${SMTP_USER}
SMTP_PASSWORD: ${SMTP_PASSWORD}
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
EMAIL_FROM: ${EMAIL_FROM}
ADMIN_EMAIL: ${ADMIN_EMAIL}