-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.save
More file actions
74 lines (66 loc) · 1.39 KB
/
docker-compose.yml.save
File metadata and controls
74 lines (66 loc) · 1.39 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
68
69
70
71
72
73
74
version: "3.9"
services:
db:
image: postgres:16.2
container_name: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=logistic
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
python:
build: ./python
container_name: fastapi
restart: always
ports:
- "8002:8002"
depends_on:
- db
volumes:
- .:/python/app
command: ["uvicorn", "app.main:app", "--reload", "--workers", "1", "--host", "0.0.0.0", "--port", "8002"]
# frontend:
# build: ./frontend
# container_name: frontend
# ports:
# - '80:3000'
# volumes:
# - ./frontend:/frontend
# stdin_open: true
# tty: true
pgadmin:
image: dpage/pgadmin4:8.5
environment:
PGADMIN_DEFAULT_EMAIL: admin@pgadmin.com
PGADMIN_DEFAULT_PASSWORD: 123456
PGADMIN_LISTEN_PORT: 80
ports:
- 15432:80
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- db
# go:
# build: ./go
# ports:
# - "8080:8080"
# volumes:
# - ./go:/usr/local/go/src/
apache:
build: ./apache
container_name: apache_php
restart: always
ports:
- 8080:80
volumes:
- ./apache/www:/mySite
- ./apache/nginx/site.cocnf:/etc/nginx/conf.d/default.conf
networks:
default:
name: hello_fastapi
volumes:
pgadmin: