-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
55 lines (49 loc) · 1.18 KB
/
docker-compose.yaml
File metadata and controls
55 lines (49 loc) · 1.18 KB
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
version: "3.7"
name: fullstack-template
services:
db:
image: postgres:17
container_name: fullstack-template-db
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: postgres
POSTGRES_INITDB_ARGS: "--auth=md5"
command: postgres -p 5434
ports:
- "5434:5434"
volumes:
- postgres_data_fullstack_template:/var/lib/postgresql/data
backend:
container_name: fastapi-backend
build:
context: ../fastapi-postgres
dockerfile: ../docker/DockerfileFastapi
depends_on:
- db
environment:
DATABASE_URL: "postgresql+psycopg://admin:admin@db:5434/postgres"
ports:
- "5001:80"
vue-frontend:
container_name: vue3-frontend
build:
context: ..
dockerfile: docker/DockerfileFront
args:
APP_DIR: "vue3"
VITE_API_URL: "http://localhost:5001"
ports:
- "3355:80"
react-frontend:
container_name: react-frontend
build:
context: ..
dockerfile: docker/DockerfileFront
args:
APP_DIR: "react"
VITE_API_URL: "http://localhost:5001"
ports:
- "3366:80"
volumes:
postgres_data_fullstack_template: