ManasseMbemba commited on
Commit
c581e48
·
verified ·
1 Parent(s): f1d703e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +104 -0
Dockerfile ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # https://waha.devlike.pro/docs/how-to/install/
2
+ services:
3
+ waha:
4
+ restart: always
5
+ # https://waha.devlike.pro/docs/how-to/engines/#docker-images
6
+ # https://portal.devlike.pro/docker-image
7
+ image: devlikeapro/waha-plus
8
+ # WAHA Core
9
+ # image: devlikeapro/waha:latest
10
+
11
+ # Add "dns" if you have a problem with resolving "web.whatsapp.com"
12
+ dns:
13
+ - 1.1.1.1
14
+ - 8.8.8.8
15
+
16
+ logging:
17
+ driver: 'json-file'
18
+ options:
19
+ max-size: '100m'
20
+ max-file: '10'
21
+
22
+ ports:
23
+ - '127.0.0.1:3000:3000/tcp'
24
+
25
+ volumes:
26
+ # Store sessions in the .sessions folder (comment it if you're using MongoDB)
27
+ - './sessions:/app/.sessions'
28
+
29
+ # Save media files
30
+ # https://waha.devlike.pro/docs/how-to/storages/#save-media-files-between-the-container-restarts
31
+ - './media:/app/.media'
32
+
33
+ env_file:
34
+ - .env
35
+
36
+ # NOTE: Only if you're using PostgreSQL to save sessions
37
+ # https://waha.devlike.pro/docs/how-to/storages/#media---postgresql
38
+ # postgres:
39
+ # image: postgres:17.6
40
+ # restart: always
41
+ # environment:
42
+ # POSTGRES_USER: postgres
43
+ # POSTGRES_PASSWORD: postgres
44
+ # POSTGRES_DB: postgres
45
+ # ports:
46
+ # - "127.0.0.1:5432:5432"
47
+ # volumes:
48
+ # - pg_data:/var/lib/postgresql/data
49
+ # command:
50
+ # - postgres
51
+ # - "-c"
52
+ # - "max_connections=3000"
53
+ # logging:
54
+ # driver: "json-file"
55
+ # options:
56
+ # max-size: "100m"
57
+ # max-file: "10"
58
+
59
+ # NOTE: Only if you're using MongoDB
60
+ # https://waha.devlike.pro/docs/how-to/storages/#sessions---mongodb
61
+ # Uncomment this block if you're using MongoDB
62
+ # mongodb:
63
+ # image: mongo
64
+ # container_name: mongodb
65
+ # ports:
66
+ # - '127.0.0.1:27017:27017/tcp'
67
+ # volumes:
68
+ # - mongodb_data:/data/db
69
+ # environment:
70
+ # - MONGO_INITDB_ROOT_USERNAME=mongouser
71
+ # - MONGO_INITDB_ROOT_PASSWORD=mongopassword
72
+ # logging:
73
+ # driver: "json-file"
74
+ # options:
75
+ # max-size: "100m"
76
+ # max-file: "10"
77
+
78
+ # NOTE: Only if you're using S3 to save media files
79
+ # https://waha.devlike.pro/docs/how-to/storages/#media---s3
80
+ # Uncomment this block if you're using AWS S3
81
+ # minio:
82
+ # image: quay.io/minio/minio
83
+ # container_name: minio
84
+ # restart: always
85
+ # ports:
86
+ # - '127.0.0.1:9000:9000'
87
+ # - '127.0.0.1:9001:9001'
88
+ # environment:
89
+ # MINIO_REGION: 'eu-west-2'
90
+ # MINIO_ROOT_USER: 'minioadmin'
91
+ # MINIO_ROOT_PASSWORD: 'minioadmin'
92
+ # volumes:
93
+ # - minio_data:/data
94
+ # command: server /data --console-address ":9001"
95
+ # logging:
96
+ # driver: "json-file"
97
+ # options:
98
+ # max-size: "100m"
99
+ # max-file: "10"
100
+
101
+ volumes:
102
+ mongodb_data: {}
103
+ minio_data: {}
104
+ pg_data: {}