-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
57 lines (56 loc) · 1.43 KB
/
docker-compose-dev.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
services:
db:
image: postgres:15.3-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "127.0.0.1:5432:5432"
volumes:
- $PWD/database/data:/var/lib/postgresql/data
- $PWD/db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
api:
build:
context: backend
dockerfile: Dockerfile.dev
depends_on:
- db
restart: always
environment:
- SENTRY_DSN=https://f0f3980ec56e4c79986e4e4bdef50bea@o4505519663939584.ingest.sentry.io/4505519664791552
- EXTERNAL_URL=http://127.0.0.1:41080/app
- ADMIN_EMAIL=$ADMIN_EMAIL
- JWT_SECRET_KEY=secret
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- TOKEN_JSON=$TOKEN_JSON
- CREDENTIALS_JSON=$CREDENTIALS_JSON
volumes:
- $PWD/backend:/app
export:
build: export
depends_on:
- db
- api
restart: always
environment:
- DEBUG=True
- PYTHONUNBUFFERED=1
- ADMIN_EMAIL=$ADMIN_EMAIL
- JWT_SECRET_KEY=secret
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- CLIENT_SECRET_JSON=$CLIENT_SECRET_JSON
volumes:
- $PWD/export/main.py:/app/main.py
- $PWD/export/utils.py:/app/utils.py
frontend:
build: frontend
depends_on:
- api
restart: always
ports:
- "0.0.0.0:41080:80"
volumes:
- $PWD/frontend/html:/usr/share/nginx/html