-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 968 Bytes
/
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
services:
fe:
restart: always
build: ./fe
tty: true
ports:
- '7749:80'
volumes:
- ./config/fe/.env:/opt/fe/uni-news-fe/.env
- ./config/fe/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/fe/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- be
be:
restart: always
build: ./be
tty: true
volumes:
- ./config/database:/opt/be/uni-news-be/config/database
- ./config/content:/opt/be/uni-news-be/config/content
depends_on:
- spider
spider:
restart: always
build: ./spider
tty: true
volumes:
- ./config/database:/opt/spider/uni-news-spider/config/database
- ./config/spiders:/opt/spider/uni-news-spider/config/spiders
depends_on:
- postgres
postgres:
restart: always
image: postgres:16.8
environment:
POSTGRES_PASSWORD: 'postgres'
volumes:
- postgres_volume:/var/lib/postgresql/data
volumes:
postgres_volume: