-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 957 Bytes
/
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
version: "3.8"
services:
vue_frontend:
container_name: vue_app
build:
context: .
dockerfile: Dockerfile
ports:
- 5173:80
fastapi:
container_name: fastapi_app
build:
context: ./fastapi_auth
dockerfile: Dockerfile
ports:
- 80:80
env_file:
- ./fastapi_auth.env
environment:
- USE_ALEMBIC=true
depends_on:
- postgres
postgres:
container_name: postgres_db
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./fastapi_auth.env
# no need to expose DB port, host machine doesn't access it
# ports:
# - 5432:5432
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
depends_on:
- postgres
# named volumes
volumes:
postgres_data: