-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-docker-compose.yml
More file actions
45 lines (42 loc) · 906 Bytes
/
python-docker-compose.yml
File metadata and controls
45 lines (42 loc) · 906 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
45
services:
db:
image: postgres:18-trixie
container_name: database
restart: unless-stopped
environment:
POSTGRES_USER: devuser
POSTGRES_PASSWORD: devpassword
POSTGRES_DB: devdb
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
apache:
image: apache_application:latest
container_name: apache_application_giulio
build:
context: .
dockerfile: Dockerfile-python-sviluppo
ports:
- "8080:8080"
- "80:80"
volumes:
- .:/workspace:cached
command: sleep infinity
depends_on:
- db
app:
image: python_application:latest
container_name: python_application
build:
context: .
dockerfile: Dockerfile-python
volumes:
- .:/workspace:cached
ports:
- 8000:8000
command: sleep infinity
depends_on:
- db
volumes:
postgres-data: