Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
94 lines (94 loc) · 2.61 KB
/
Copy pathcompose.yaml
File metadata and controls
94 lines (94 loc) · 2.61 KB
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
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER_FILE: /run/secrets/db_user
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: UnderStance
volumes:
- type: bind
source: ./Backend/10-db-init.sql
target: /docker-entrypoint-initdb.d/10-db-init.sql
- type: bind
source: ./Backend/tests/setup/20-pop-db.sql
target: /docker-entrypoint-initdb.d/20-pop-db.sql
secrets:
- db_root_pw
- db_user
- db_password
backend:
build: Backend/
environment:
DB_HOST: "db"
DB_PORT: 5432
FRONTEND_ORIGIN: "http://localhost:5174"
ADMIN_ORIGIN: "http://localhost:5173"
SECRET_USER_PATH: "/run/secrets/db_user"
SECRET_PASSWORD_PATH: "/run/secrets/db_password"
SECRET_AUTH0_DOMAIN_PATH: "/run/secrets/auth0_domain"
SECRET_AUTH0_CLIENT_ID_PATH: "/run/secrets/auth0_client_id"
SECRET_AUTH0_CLIENT_SECRET_PATH: "/run/secrets/auth0_client_secret"
SECRET_GA4_ACC_PATH: "/run/secrets/ga4_service_account"
SECRET_GA4_PROP_ID_PATH: "/run/secrets/ga4_property_id"
ports:
- 3000:3000
secrets:
- db_user
- db_password
- auth0_domain
- auth0_client_id
- auth0_client_secret
- ga4_service_account
- ga4_property_id
develop:
watch:
- action: rebuild
path: Backend/
frontend:
build: Frontend/
environment:
VITE_API_URL: "http://localhost:3000"
ports:
- 5174:5174
develop:
watch:
- action: sync
path: ./Frontend/src/
target: /app/src/
ignore:
- node_modules/
- action: rebuild
path: Frontend/package.json
admin:
build: AdminDashboard/
environment:
VITE_API_URL: "http://localhost:3000"
ports:
- 5173:5173
develop:
watch:
- action: sync
path: ./AdminDashboard/src/
target: /app/src/
ignore:
- node_modules/
- action: rebuild
path: AdminDashboard/package.json
secrets:
db_root_pw:
file: ./Backend/.config/.dev/mysql-root-password
db_user:
file: ./Backend/.config/.dev/mysql-user
db_password:
file: ./Backend/.config/.dev/mysql-password
auth0_domain:
file: ./Backend/.config/.dev/auth0-domain
auth0_client_id:
file: ./Backend/.config/.dev/auth0-client-id
auth0_client_secret:
file: ./Backend/.config/.dev/auth0-client-secret
ga4_service_account:
file: ./Backend/.config/.dev/ga4-service-account.json
ga4_property_id:
file: ./Backend/.config/.dev/ga4-property-id