-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.5 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
46
47
48
49
50
51
52
version: '3'
services:
app:
container_name: app
image: nestjs-oauth
build:
context: .
dockerfile: Dockerfile
ports:
- ${APP_PORT}:3000
environment:
MIXPANEL_TOKEN: ${MIXPANEL_TOKEN}
AMPLITUDE_API_KEY: ${AMPLITUDE_API_KEY}
SENTRY_DSN: ${SENTRY_DSN}
SENDGRID_API_KEY: ${SENDGRID_API_KEY}
SENDGRID_EMAIL_ADDRESS: ${SENDGRID_EMAIL_ADDRESS}
COOKIE_SECRET: ${COOKIE_SECRET}
JWT_SECRET: ${JWT_SECRET}
AUTH_COOKIE_NAME: ${AUTH_COOKIE_NAME}
KAKAO_REST_API_KEY: ${KAKAO_REST_API_KEY}
KAKAO_REDIRECT_URI: ${KAKAO_REDIRECT_URI}
KAKAO_CLIENT_SECRET: ${KAKAO_CLIENT_SECRET}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
GOOGLE_REDIRECT_URI: ${GOOGLE_REDIRECT_URI}
DATABASE_URL: "mongodb://${MONGO_USER}:${MONGO_PW}@local-mongo:27017/${MONGO_DB}?authSource=admin"
PORT: 3000
WAIT_HOSTS: mongo:27017
command:
- bash
- -c
- | # https://yaml-multiline.info/
/wait &&
npm run start
depends_on:
- mongo
mongo:
container_name: local-mongo
image: mongo:5.0.15
restart: always
ports:
- ${MONGO_PORT}:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PW}
- MONGO_INITDB_DATABASE=${MONGO_DB}
volumes:
- ./mongodb/:/data/db/
- ./:/opt/keyfile/
command: "--bind_ip_all --keyFile /opt/keyfile/keyfile --replSet rs0"