-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (52 loc) · 1.23 KB
/
docker-compose.dev.yml
File metadata and controls
57 lines (52 loc) · 1.23 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
x-python-service:
&x-python-service
user: "1000:1000"
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_started
networks:
- internal
services:
api:
<<: *x-python-service
build:
context: .
dockerfile: ./config/docker/Dockerfile.api
image: access-api
env_file:
- ./config/env/.api.env
- ./config/env/.core.env
container_name: "access-api"
ports:
- "8000:8000"
volumes:
- ./backend/api:/app/api
- ./backend/core:/app/core
command: [ "uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4", "--reload", "--log-level=info" ]
nginx:
image: "nginx:stable"
ports:
- "80:80"
- "443:443"
volumes:
- ./config/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./config/certs:/etc/nginx/certs
networks:
- internal
depends_on:
- api
- frontend
frontend:
image: "access-frontend"
pull_policy: never
build:
context: .
dockerfile: ./config/docker/Dockerfile.frontend-dev
container_name: "access-frontend"
volumes:
- ./frontend/src:/app/src
- ./frontend/.env:/app/.env
networks:
- internal