-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
69 lines (64 loc) · 1.84 KB
/
docker-compose.yaml
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
version: '3.7'
services:
app:
# platform: linux/x86_64
build: service_app/
depends_on:
- db
environment:
- DATABASE_URL=postgres://db_username:db_password@db:5432/db_dev
- SUPABASE_URL=${SUPABASE_URL}
- SUPABASE_KEY=${SUPABASE_KEY}
- FB_TYPE=${FB_TYPE}
- FB_PROJECT_ID=${FB_PROJECT_ID}
- FB_PRIVATE_KEY_ID=${FB_PRIVATE_KEY_ID}
- FB_PRIVATE_KEY=${FB_PRIVATE_KEY}
- FB_CLIENT_EMAIL=${FB_CLIENT_EMAIL}
- FB_CLIENT_ID=${FB_CLIENT_ID}
- FB_AUTH_URI=${FB_AUTH_URI}
- FB_TOKEN_URI=${FB_TOKEN_URI}
- FB_AUTH_PROVIDER_X509_CERT_URL=${FB_AUTH_PROVIDER_X509_CERT_URL}
- FB_CLIENT_X509_CERT_URL=${FB_CLIENT_X509_CERT_URL}
- FB_ADMIN_CONFIGS=${FB_ADMIN_CONFIGS}
- FB_PYREBASE_CONFIGS=${FB_PYREBASE_CONFIGS}
- AUTH_SECRET=${AUTH_SECRET}
command: uvicorn src.app.api:app --reload --host 0.0.0.0 --port 4000
volumes:
- ./service_app:/app
ports:
- 4000:4000
frontend:
# platform: linux/x86_64
build: service_frontend/
environment:
- VITE_API_ENDPOINT=${VITE_API_ENDPOINT}
- VITE_SUPABASE_URL=${VITE_SUPABASE_URL}
- VITE_SUPABASE_ANON_KEY=${VITE_SUPABASE_ANON_KEY}
command: pnpm dev
# volumes:
# - ./service_frontend:/usr/src/app
ports:
- 3333:3333
# auth:
# build: service_auth/
# environment:
# - AUTH_SECRET=${AUTH_SECRET}
# command: uvicorn app:server --reload --host 0.0.0.0 --port 8330
# volumes:
# - ./service_auth:/app
# ports:
# - 8330:8330
db:
image: postgres:14-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
- POSTGRES_USER=db_username
- POSTGRES_PASSWORD=db_password
- POSTGRES_DB=db_dev
# Persistent data
volumes:
postgres_data:
driver: local