-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
75 lines (69 loc) · 1.71 KB
/
docker-compose.override.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
# Override containers for local / dev environnement
version: "2.4"
services:
reverse_proxy:
volumes:
- cerfa_nginx_data:/data
- ./reverse_proxy/dev/includes:/etc/nginx/templates/includes/env
ui:
mem_limit: 1g
stdin_open: true
volumes:
- ./ui:/app #Allows source folders to be watched
- /app/.next/
- /app/node_modules/
build:
context: ui
dockerfile: Dockerfile.dev
args:
- NEXT_PUBLIC_ENV=dev
- NEXT_PUBLIC_BASE_URL=http://localhost
- NEXT_PUBLIC_BASE_HOST=localhost
- NEXT_PUBLIC_METABASE_URL=https://contrat.apprentissage.beta.gouv.fr/
- SKIP_PREFLIGHT_CHECK=true
server:
command: [ "yarn", "debug" ]
ports:
- "127.0.0.1:9229:9229" # Allows remote debugging
volumes:
- ./server/src:/app/src # Allows source folders to be watched
- ./server/config:/app/config
- cerfa_server_data:/data
- ./server/agecap:/data/agecap
environment:
- CERFA_ENV=dev
- CERFA_LOG_LEVEL=debug
- CERFA_LOG_DESTINATIONS=stdout,mongodb
- CERFA_SMTP_HOST=smtp
- CERFA_SMTP_PORT=1025
depends_on:
- smtp
mongodb:
ports:
- "127.0.0.1:27017:27017"
volumes:
- cerfa_mongodb_data:/data
clamav:
image: clamav/clamav
ports:
- 3310:3310
smtp:
image: mailhog/mailhog
container_name: cerfa_smtp
mem_limit: 128m
ports:
- 1025:1025
networks:
- cerfa_network
environment:
- MH_UI_WEB_PATH=smtp
volumes:
cerfa_mongodb_data:
driver: local
name: cerfa_mongodb_data
cerfa_nginx_data:
driver: local
name: cerfa_nginx_data
cerfa_server_data:
driver: local
name: cerfa_server_data