-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
133 lines (124 loc) · 3.28 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
133 lines (124 loc) · 3.28 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
version: '3.4'
volumes:
db_data: {}
redis_data: {}
pgsql_data: {}
core_poetry_cache_data: {}
celery_poetry_cache_data: {}
public_web_node_data: {}
services:
web:
image: ${DOCKER_REGISTRY-}web
build:
context: .
dockerfile: ./Dockerfile.dev
environment:
- ASPNETCORE_ENVIRONMENT=Development
- NO_DOCKER=1
ports:
- "3000:3000"
command: make dev MODULE=Web PORT=3000
volumes:
- ./Web:/src/Web
db:
image: mcr.microsoft.com/azure-sql-edge
user: root
ports:
- 1433:1433
environment:
ACCEPT_EULA: 'true'
SA_PASSWORD: veryStrongSecret!
volumes:
- db_data:/var/opt/mssql:delegated
pgsql:
image: postgres:13.5-alpine3.15
ports:
- 5432:5432
volumes:
- pgsql_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
pgloader-cmd:
image: dimitri/pgloader:latest
volumes:
- ./mssql.load:/data/mssql.load
environment:
- SQL_SERVER_PATH=mssql://sa:veryStrongSecret!@db/Database
- POSTGRES_PATH=postgresql://postgres:postgres@pgsql:5432/postgres
core:
image: ${DOCKER_REGISTRY-}core
depends_on:
- pgsql
build:
context: ./src/core
dockerfile: Dockerfile.dev
command: bash -c 'PYTHONPATH=/app alembic upgrade head && uvicorn --reload --host=0.0.0.0 app.main:app --port 3001 --log-level=debug'
ports:
- 3001:3001
volumes:
- ./src/core/app:/app
- core_poetry_cache_data:/var/poetry/cache
environment:
- PROJECT_NAME=Frontline.live
- SERVER_NAME=localhost
- SERVER_HOST=https://localhost
# Allow explicit env var override for tests
- SMTP_HOST=
- PORT=3001
- POSTGRES_SERVER=pgsql
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- POSTGRES_SCHEMA=frontlinelive
- 'BACKEND_CORS_ORIGINS=["http://localhost:3000"]'
- SENTRY_DSN=
- FIRST_SUPERUSER=admin@example.com
- FIRST_SUPERUSER_PASSWORD=secret
- CELERY_BROKER_URL=redis://redis:6379/1
- CACHE_BACKEND_URL=redis://redis:6379/2
celeryworker:
image: ${DOCKER_REGISTRY-}celeryworker
depends_on:
- db
- redis
build:
context: ./src/core
dockerfile: Dockerfile.dev
volumes:
- ./src/core/app:/app
- celery_poetry_cache_data:/var/poetry/cache
environment:
- PROJECT_NAME=Frontline.live
- SERVER_NAME=localhost
- SERVER_HOST=https://localhost
# Allow explicit env var override for tests
- SMTP_HOST=
- PORT=3001
- POSTGRES_SERVER=pgsql
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- SENTRY_DSN=
- FIRST_SUPERUSER=admin@example.com
- FIRST_SUPERUSER_PASSWORD=secret
- CELERY_BROKER_URL=redis://redis:6379/1
- CACHE_BACKEND_URL=redis://redis:6379/2
public-web:
image: ${DOCKER_REGISTRY-}public-web
build:
context: ./src/public-web
dockerfile: Dockerfile.dev
ports:
- 3002:3002
volumes:
- ./src/public-web:/app
- public_web_node_data:/app/node_modules
environment:
- PORT=3002
redis:
image: redis:6-alpine
ports:
- 6379:6379
volumes:
- redis_data:/data