-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
executable file
·51 lines (49 loc) · 1.41 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
version: '2'
services:
licenses:
build:
context: ./licenses
args:
- NODE_ENV=production
- TZ=America/Sao_Paulo
container_name: licenses
environment:
NODE_ENV: production
working_dir: /srv/licenses
command: npm run production
volumes:
- ./licenses:/srv/licenses
- ./files/licencas:/srv/licenses/files/licencas
- ./files/requerimentos:/srv/licenses/files/requerimentos
- ./files/unidades_conservacao:/srv/licenses/files/unidades_conservacao
- ./files/terras_indigenas:/srv/licenses/files/terras_indigenas
- ./files/requerimentos_ti:/srv/licenses/files/requerimentos_ti
- /srv/licenses/node_modules
links:
- database
depends_on:
- database
restart: always
env_file:
- .env
environment:
MONGO_DB_USERNAME: ${MONGO_DB_USERNAME}
MONGO_DB_PASSWORD: ${MONGO_DB_PASSWORD}
CONSUMER_KEY: ${CONSUMER_KEY}
CONSUMER_SECRET: ${CONSUMER_SECRET}
ACCESS_TOKEN_KEY: ${ACCESS_TOKEN_KEY}
ACCESS_TOKEN_SECRET: ${ACCESS_TOKEN_SECRET}
MAPBOX_ACCESS_TOKEN: ${MAPBOX_ACCESS_TOKEN}
database:
image: mongo
container_name: mongodb
volumes:
- ./sysbkp/data:/data
ports:
- 27017:27017
restart: always
env_file:
- .env
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_DB_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_DB_PASSWORD}