forked from tgscan-dev/tgscan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.5 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
version: '3'
services:
api-server:
image: api-server:v1.0.0
build:
context: ./api-server
dockerfile: Dockerfile
network_mode: host
restart: always
volumes:
- ./api-server/MessageSync_last_id.txt:/app/MessageSync_last_id.txt
- ./icon:/app/icon
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE}
SPRING_DATASOURCE_URL: ${SPRING_DATASOURCE_URL}
SPRING_ELASTICSEARCH_URIS: ${SPRING_ELASTICSEARCH_URIS}
msg-scraper:
image: msg-scraper:v1.0.0
build:
context: ./msg-scraper
dockerfile: Dockerfile
network_mode: host
restart: always
environment:
- PHONE=${PHONE}
- API_HASH=${API_HASH}
- API_ID=${API_ID}
- PG_DATABASE=${PG_DATABASE}
- PG_USER=${PG_USER}
- PG_PASSWORD=${PG_PASSWORD}
- PG_HOST=${PG_HOST}
- PG_PORT=${PG_PORT}
- USE_PROXY=${USE_PROXY}
- PROXY_PASSWORD=${PROXY_PASSWORD}
- PROXY_USERNAME=${PROXY_USERNAME}
- PROXY_PORT=${PROXY_PORT}
- PROXY_HOST=${PROXY_HOST}
web-app:
image: web-app:v1.0.0
build:
context: ./web-app
dockerfile: Dockerfile
network_mode: host
restart: always
depends_on:
- api-server
volumes:
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
- ./icon:/var/www/tgscan.xyz/images:ro
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw