-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
65 lines (60 loc) · 1.03 KB
/
docker-compose.yaml
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
version: "3.8"
services:
frontend:
build:
context: ./front-end
dockerfile: Dockerfile
ports:
- 80:3000
networks:
- a
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 5000:5000
networks:
- a
- b
fastapi:
build:
context: ./OAuth
dockerfile: Dockerfile
# command: uvicorn app.api.server:app --reload --workers 1 --host 0.0.0.0 --port 8000
env_file:
- ./.env
ports:
- 8000:8000
# volumes:
# - ./app:/gst/app/
depends_on:
- db
networks:
- a
- b
db:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- TZ=Asia/Kolkata
# - POSTGRES_PASSWORD = postgres
env_file:
- ./.env
ports:
- 5432:5432
networks:
- b
adminer:
image: adminer
restart: always
ports:
- 8080:8080
environment:
ADMINER_DESIGN: "dracula"
networks:
a:
b:
volumes:
postgres_data: