-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (123 loc) · 2.46 KB
/
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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
services:
db:
image: postgres
container_name: postgres_db
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- my_network
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
ports:
- "81:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
depends_on:
- db
networks:
- my_network
go_api:
build:
context: ./backend
dockerfile: Dockerfile-go
container_name: go_api
ports:
- "8080:8080"
depends_on:
- db
- ftp
- ocr
- ollama
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: postgres
APP_ENV: development
FTP_SERVER: ftp:21
FTP_USER: user
FTP_PASSWORD: pass
FTP_DIR: /home/ftpusers/user
OLLAMA_URL: http://ollama:11434/api/generate
networks:
- my_network
volumes:
- ./backend:/app
command: air
security_opt:
- seccomp:unconfined
privileged: true
frontend:
build:
context: ./frontend
dockerfile: Dockerfile-angular
container_name: angular
ports:
- "4200:4200"
networks:
- my_network
volumes:
- ./frontend:/usr/src/app
command: npm start -- --host 0.0.0.0
environment:
- CHOKIDAR_USEPOLLING=true
ftp:
build:
context: .
dockerfile: Dockerfile-ftp
container_name: ftp
ports:
- "21:21"
- "30000-30009:30000-30009"
environment:
PUBLICHOST: "127.0.0.1"
FTP_USER_NAME: "user"
FTP_USER_PASS: "pass"
FTP_USER_HOME: "/home/ftpusers/user"
volumes:
- ftpdata:/home/ftpusers/user
networks:
- my_network
ocr:
build:
context: ./ocr
dockerfile: Dockerfile-ocr
container_name: ocr
volumes:
- ftpdata:/home/ftpusers/user
deploy:
resources:
limits:
memory: 2g
reservations:
memory: 1g
networks:
- my_network
ports:
- "5000:5000"
restart: always
ollama:
image: ollama/ollama
container_name: ollama
ports:
- "11434:11434"
volumes:
- ollama:/root/.ollama
networks:
- my_network
networks:
my_network:
driver: bridge
volumes:
pgdata:
ftpdata:
ollama: