-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (35 loc) · 794 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (35 loc) · 794 Bytes
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
version: '3.8'
services:
api:
build: ./services/api
command: uvicorn app:app --host 0.0.0.0 --port 5555 --app-dir app --workers 1 --limit-concurrency 32 --reload
volumes:
- ./services/api/:/usr/src/app/
ports:
- "5555:5555"
env_file:
- ./.env.dev
depends_on:
- db
container_name: api
web:
image: img-static-site-example
build:
context: ./services/web
dockerfile: Dockerfile
ports:
- "8080:80"
depends_on:
- api
container_name: web
db:
image: postgres:13-alpine
volumes:
- postgres_data:/home/logs
environment:
- POSTGRES_USER=portfolio
- POSTGRES_PASSWORD=portfolio
- POSTGRES_DB=portfolio_dev
container_name: postgresql
volumes:
postgres_data: