-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
71 lines (68 loc) · 1.35 KB
/
docker-compose.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.8'
services:
fastapi:
build:
context: .
dockerfile: Dockerfile
command: sh -c "uvicorn main:app --reload --host 0.0.0.0 --port 8000"
env_file:
- .env
expose:
- "8000:8000" # Exponha a porta 8000 internamente
volumes:
- .:/app
networks:
- pi2
# nginx:
# image: nginx:alpine
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./static/products:/usr/share/nginx/html
# ports:
# - "80:80"
# networks:
# - pi2
# depends_on:
# - fastapi
# minio:
# image: minio/minio
# ports:
# - "9002:9002"
# - "9001:9001"
# volumes:
# - minio_storage:/data
# environment:
# MINIO_ROOT_USER: masoud
# MINIO_ROOT_PASSWORD: Strong#Pass#2022
# command: server --console-address ":9001" /data
#volumes:
#
# minio_storage: { }
#
#networks:
#
# pi2:
# driver: bridge
#version: '3'
#services:
# fastapi:
# build:
# context: .
# dockerfile: Dockerfile
# command: sh -c "uvicorn main:app --reload --host 0.0.0.0 --port 8000"
# env_file:
# - .env
# ports:
# - "80:8000"
# volumes:
# - .:/app
#
# nginx:
# image: nginx:alpine
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf
# - ./static/products:/app/static/products
# ports:
# - "80:80"
# depends_on:
# - fastapi