-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (84 loc) · 1.87 KB
/
docker-compose.yml
File metadata and controls
93 lines (84 loc) · 1.87 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3'
services:
nginx:
image: nginx:alpine
container_name: docs_nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./certbot/www:/var/www/certbot/
- ./certbot/conf:/etc/letsencrypt/
- ./nginx/conf.d/:/etc/nginx/conf.d/
networks:
- docs
api:
container_name: docs_api
restart: unless-stopped
build:
context: ./api
dockerfile: Dockerfile
volumes:
- ./api:/app
- ./storage:/app/storage
networks:
- docs
ml:
container_name: docs_ml
restart: unless-stopped
build:
context: ./ml
dockerfile: Dockerfile
volumes:
- ./ml:/app
- ./storage:/app/storage
networks:
- docs
vue:
container_name: docs_vue
restart: unless-stopped
build:
context: ./vue
dockerfile: Dockerfile
networks:
- docs
postgres:
container_name: docs_postgres
restart: unless-stopped
image: postgres:14
ports:
- "5432:5432"
env_file:
- ./pgsql/.env
volumes:
- docs-pgsql-volume:/var/lib/postgresql/data
networks:
- docs
redis:
image: redis:alpine
container_name: docs_redis
restart: unless-stopped
volumes:
- docs-redis-volume:/data
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
expose:
- 6379
command: redis-server /usr/local/etc/redis/redis.conf
networks:
- docs
certbot:
image: certbot/certbot
container_name: docs_certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
command: certonly --webroot -w /var/www/certbot/ --email test@gmail.com -d ml.rwfsh39.ru -d api.rwfsh39.ru -d rwfsh39.ru --agree-tos --cert-name docs
networks:
docs:
driver: bridge
volumes:
docs-pgsql-volume:
driver: local
docs-redis-volume:
driver: local