-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 794 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (44 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
41
42
43
44
version: '3.8'
services:
backend:
build: .
restart: always
command: uvicorn main:app --reload --workers 1 --host 0.0.0.0 --port 8000
env_file:
- ./.env
ports:
- 8000:8000
depends_on:
- db
- mongo_db
db:
image: postgres:13-alpine
restart: always
env_file:
- ./.env
ports:
- 5432:5432
mongo_db:
image: mongo:latest
ports:
- 27017:27017
volumes:
- mongodb:/data/db
- mongodb_config:/data/configdb
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin4_container
restart: always
ports:
- "5050:80"
env_file:
- ./.env
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- db
volumes:
mongodb:
mongodb_config:
db_volume:
pgadmin-data: