-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.backend.local.yml
64 lines (59 loc) · 1.85 KB
/
docker-compose.backend.local.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
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.4"
services:
mongo:
container_name: mongo
image: mongo
ports:
- "${MONGO_PORT}:27017"
volumes:
- db-en-vivo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_ROOT_USR}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_ROOT_PWD}
restart: always
logging:
driver: none
imgproxy:
container_name: en-vivo-imgproxy
image: darthsim/imgproxy
ports:
- "${SERVIDOR_MEDIA_IMGPROXY_PORT}:${SERVIDOR_MEDIA_IMGPROXY_PORT}"
environment:
IMGPROXY_LOG_LEVEL: warn
IMGPROXY_KEY: ${SERVIDOR_MEDIA_IMGPROXY_KEY}
IMGPROXY_SALT: ${SERVIDOR_MEDIA_IMGPROXY_SALT}
en-vivo-backend:
container_name: en-vivo-backend
restart: always
ports:
- "${EN_VIVO_BACKEND_PORT}:${EN_VIVO_BACKEND_PORT}"
build:
context: ./en-vivo-backend
dockerfile: ./Dockerfile.local
args:
PORT: ${EN_VIVO_BACKEND_PORT}
NODE_ENV: production
MONGO_URI: mongodb://${MONGO_ROOT_USR}:${MONGO_ROOT_PWD}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB}?authSource=admin
BUILD_STAGE: 1
volumes:
- archivos:/en-vivo-backend/archivos
- ./en-vivo-backend/:/en-vivo-backend
depends_on:
- mongo
- imgproxy
environment:
PORT: ${EN_VIVO_BACKEND_PORT}
NODE_ENV: ${NODE_ENV}
MONGO_URI: mongodb://${MONGO_ROOT_USR}:${MONGO_ROOT_PWD}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB}?authSource=admin
HOST: ${EN_VIVO_BACKEND_HOST}
DOMAIN: ${EN_VIVO_BACKEND_DOMAIN}
PORT: ${EN_VIVO_BACKEND_PORT}
MEDIA_FOLDER: ${EN_VIVO_BACKEND_MEDIA_FOLDER}
IMGPROXY_HOST: ${SERVIDOR_MEDIA_IMGPROXY_HOST}
IMGPROXY_PORT: ${SERVIDOR_MEDIA_IMGPROXY_PORT}
IMGPROXY_KEY: ${SERVIDOR_MEDIA_IMGPROXY_KEY}
IMGPROXY_SALT: ${SERVIDOR_MEDIA_IMGPROXY_SALT}
RESET_DB: ${RESET_DB}
volumes:
db-en-vivo:
archivos: