forked from pagopa/io-spid-commons
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
48 lines (44 loc) · 1010 Bytes
/
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
version: "2.2"
services:
spid-express-app:
build:
context: ./
dockerfile: Dockerfile
environment:
- NODE_ENV=dev
- REDIS_URL=redis://redis
- NODE_TLS_REJECT_UNAUTHORIZED=0
expose:
- "3000"
ports:
- "3000:3000"
image: node:10.14.2-alpine
working_dir: /usr/src/app
command: ["yarn", "dev"]
networks:
- spid-express-app
depends_on:
- spid-testenv2
spid-testenv2:
image: italia/spid-testenv2:1.1.0
ports:
- "8088:8088"
volumes:
- "./spid-testenv/config.yaml:/app/conf/config.yaml"
- "./spid-testenv/users.json:/app/conf/users.json"
networks:
- spid-express-app
redis:
image: wodby/redis:3.2-2.1.5
environment:
REDIS_TIMEOUT: 300
REDIS_TCP_KEEPALIVE: 60
REDIS_MAXMEMORY: 182m
networks:
- spid-express-app
# needed to make TSL work
networks:
spid-express-app:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450