forked from Altinn/app-localtest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (70 loc) · 1.95 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
76
version: '3.6'
networks:
altinntestlocal_network:
external: false
services:
localtest_loadbalancer:
container_name: localtest-loadbalancer
image: nginx:alpine-perl
restart: always
networks:
- altinntestlocal_network
ports:
- "${ALTINN3LOCAL_PORT:-80}:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
- TEST_DOMAIN=${TEST_DOMAIN:-local.altinn.cloud}
- ALTINN3LOCAL_PORT=${ALTINN3LOCAL_PORT:-80}
- NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/
- NGINX_ENVSUBST_TEMPLATE_SUFFIX=.conf
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./loadbalancer/templates:/etc/nginx/templates/:ro
- ./loadbalancer/www:/www/:ro
altinn_platform_pdf:
container_name: altinn-pdf
platform: linux/amd64
image: ghcr.io/altinn/altinn-pdf:latest
restart: always
networks:
- altinntestlocal_network
ports:
- "5070:5070"
extra_hosts:
- "host.docker.internal:host-gateway"
altinn_pdf_service:
container_name: altinn-pdf-service
image: browserless/chrome:1-puppeteer-19.2.2
restart: always
profiles:
- pdf
networks:
- altinntestlocal_network
ports:
- "5300:3000"
extra_hosts:
- "${TEST_DOMAIN:-local.altinn.cloud}:host-gateway"
altinn_localtest:
container_name: localtest
image: localtest:latest
restart: always
networks:
- altinntestlocal_network
ports:
- "5101:5101"
build:
context: .
environment:
- DOTNET_ENVIRONMENT=Docker
- ASPNETCORE_URLS=http://*:5101/
- GeneralSettings__BaseUrl=http://${TEST_DOMAIN:-local.altinn.cloud}:${ALTINN3LOCAL_PORT:-80}
- GeneralSettings__HostName=${TEST_DOMAIN:-local.altinn.cloud}
volumes:
- ./testdata:/testdata
- ${ALTINN3LOCALSTORAGE_PATH:-AltinnPlatformLocal}:/AltinnPlatformLocal
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
AltinnPlatformLocal: