-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (71 loc) · 1.75 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
x-service: &api-definition
build:
context: .
dockerfile: Dockerfile.dev
environment:
PORT: '5000'
LOG_LEVEL: trace
env_file:
- path: ./.environment
depends_on:
redis:
condition: service_started
develop:
watch:
- action: rebuild
path: package.json
- action: rebuild
path: yarn.lock
- action: sync+restart
path: ./tsconfig.json
target: /usr/src/app/tsconfig.json
- action: sync
path: ./
target: /usr/src/app/
ignore:
- node_modules/
- dist/
- certs/
- .vscode/
- docker-compose.yml
services:
api:
<<: *api-definition
ports:
- '8082:5000' # Application
- '9229:9229' # NodeJS debugger
environment:
PORT: '5000'
# DATABASE_URL: postgresql://passemploi:passemploi@db/passemploidb
LOG_LEVEL: trace
VIRTUAL_HOST: id.pass-emploi.incubateur.net
VIRTUAL_PORT: '5000'
command: yarn watch
redis:
image: docker.io/redis/redis-stack:7.2.0-v9
container_name: cej-auth-redis
ports:
- '6777:6379' # c'est le redis
- '8001:8001' # c'est le dashboard
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'redis-cli -a $$REDIS_PASSWORD ping | grep PONG']
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- redis-data:/data
environment:
REDIS_PASSWORD: myredispassword
REDIS_ARGS: '--requirepass myredispassword --appendonly yes --save 60 1 --loglevel warning'
https:
image: docker.io/nginxproxy/nginx-proxy
ports:
- '443:443'
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./certs:/etc/nginx/certs
volumes:
redis-data: