-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.42 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
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.8'
services:
frontend:
build:
context: .
dockerfile: Dockerfile
target: frontend
ports:
- "4321:4321"
volumes:
- ./frontend:/app/frontend
command: ["pnpm", "run", "dev", "--host", "0.0.0.0"]
backend:
build:
context: .
dockerfile: Dockerfile
target: backend
ports:
- "5000:5000"
volumes:
- ./:/app
command: ["python", "flask_app.py"]
depends_on:
- db
environment:
DB_HOST: db
DB_PORT: 5432
DB_NAME: ${DB_NAME:-condado_castilla_db}
DB_USER: ${DB_USER:-condado_user}
CONDADO_DB_PASSWORD: ${CONDADO_DB_PASSWORD:-condado_password}
nuevaweb_php:
image: php:8.2-cli
ports:
- "8082:8082"
volumes:
- ./nuevaweb:/var/www/html/nuevaweb
working_dir: /var/www/html
command: php -S 0.0.0.0:8082 -t nuevaweb
nuevaweb_flask:
build:
context: .
dockerfile: Dockerfile
target: backend
ports:
- "5002:5002"
volumes:
- ./:/app
working_dir: /app/nuevaweb
command: ["python", "flask_app.py"]
db:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME:-condado_castilla_db}
POSTGRES_USER: ${DB_USER:-condado_user}
POSTGRES_PASSWORD: ${CONDADO_DB_PASSWORD:-condado_password}
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
db_data: