-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.override.test.yml
103 lines (94 loc) · 3.02 KB
/
compose.override.test.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: test-fssb23
services:
backend_api:
build:
# context:
# ./backendAPI
target: dev
# image: backend_api:test
depends_on:
- postgres
environment:
- KEYVAULT_HEALTH=$KEYVAULT_HEALTH
- APP_REG_CLIENT_ID
- APP_CLIENT_SECRET
- FRONTEND_SVELTE_ORIGIN
- FRONTEND_SVELTE_FQDN
- AZURE_TENANT_ID=$AZURE_TENANT_ID
- AZURE_CLIENT_ID=$AZURE_CLIENT_ID
- API_SCOPE=$API_SCOPE
- BACK_CLIENT_SECRET=$BACK_CLIENT_SECRET
- POSTGRES_HOST=$POSTGRES_HOST
# - POSTGRES_PORT=$POSTGRES_PORT
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- REDIS_SESSION_DB=$REDIS_SESSION_DB
- REDIS_PASSWORD=$REDIS_PASSWORD
networks:
- test_network
ports:
- "8670:80"
volumes:
- test-app-data:/data
postgres:
container_name: test_postgres
volumes:
- test-postgres-data:/var/lib/postgresql/data/
environment:
- POSTGRES_HOST=$POSTGRES_HOST
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
networks:
- test_network
frontend_svelte:
build:
target: build
args:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- REDIS_SESSION_DB=$REDIS_SESSION_DB
- REDIS_PASSWORD=$REDIS_PASSWORD
- APP_REG_CLIENT_ID=$APP_REG_CLIENT_ID
- APP_CLIENT_SECRET=$APP_CLIENT_SECRET
- AZURE_TENANT_ID=$AZURE_TENANT_ID
- API_SCOPE=$API_SCOPE
environment:
- REDIS_HOST=$REDIS_HOST
- REDIS_PORT=$REDIS_PORT
- REDIS_SESSION_DB=$REDIS_SESSION_DB
- REDIS_PASSWORD=$REDIS_PASSWORD
- APP_REG_CLIENT_ID=$APP_REG_CLIENT_ID
- APP_CLIENT_SECRET=$APP_CLIENT_SECRET
- AZURE_TENANT_ID=$AZURE_TENANT_ID
- API_SCOPE=$API_SCOPE
networks:
- test_network
command:
sh -c "npm install && npm run dev"
# npm run dev
volumes:
- ./frontend_svelte:/app
- /app/node_modules
# - ./frontend_svelte/node_modules:/app/node_modules
redis:
container_name: test_redis
image: redis/redis-stack:7.2.0-v13
environment:
- REDIS_ARGS=$REDIS_ARGS
volumes:
- test-redis-data:/data
# environment:
# - REDIS_HOST=$REDIS_HOST
# - REDIS_PORT=$REDIS_PORT
networks:
- test_network
volumes:
test-postgres-data:
test-app-data:
test-redis-data:
networks:
test_network: