-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.yaml
113 lines (105 loc) · 2.58 KB
/
docker-compose.yaml
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
version: '3'
services:
base: &base
image: chatwoot/chatwoot:develop
container_name: chatwoot
hostname: lchatwoot
env_file: .env
stdin_open: true
tty: true
networks:
- wpp-network
rails:
<<: *base
container_name: chatwoot-rails
hostname: chatwoot-rails
depends_on:
- postgres
- redis
environment:
- NODE_ENV=production
- RAILS_ENV=production
networks:
- wpp-network
entrypoint: docker/entrypoints/rails.sh
command: ['bundle', 'exec', 'rails', 's', '-p', '3000', '-b', '0.0.0.0']
sidekiq:
<<: *base
container_name: chatwoot-sidekiq
hostname: chatwoot-sidekiq
depends_on:
- postgres
- redis
environment:
- NODE_ENV=production
- RAILS_ENV=production
networks:
- wpp-network
restart: unless-stopped
command: ['bundle', 'exec', 'sidekiq', '-C', 'config/sidekiq.yml']
postgres:
image: postgres:latest
container_name: chatwoot-postgres
hostname: chatwoot-postgres
restart: always
volumes:
- ./wppconnect-chatwoot/data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=chatwoot
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=chatwoot
networks:
- wpp-network
pgadmin:
image: dpage/pgadmin4:latest
container_name: chatwoot-pgadmin4
hostname: chatwoot-pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "PgAdmin2021!"
depends_on:
- postgres
networks:
- wpp-network
redis:
image: redis:alpine
container_name: chatwoot-redis
hostname: chatwoot-redis
restart: always
command: ["sh", "-c", "redis-server --requirepass \"$REDIS_PASSWORD\""]
env_file: .env
volumes:
- ./wppconnect-chatwoot/data/redis:/data
networks:
- wpp-network
wppconnect-server:
build:
context: ./wppconnect-server
dockerfile: Dockerfile
restart: always
image: wppconnect-server
container_name: wppconnect-server
hostname: wppconnect-server
entrypoint: docker-entrypoint.sh yarn start
networks:
- wpp-network
tty: true
nginx:
build:
context: ./wppconnect-nginx
dockerfile: Dockerfile
container_name: nginx
entrypoint: nginx -g "daemon off;"
ports:
- "8080:8080" #chatwoot
- "8081:8081" #wppconnect
- "8082:8082" #pgadmin
- "8083:8083" #redis
networks:
- wpp-network
depends_on:
- wppconnect-server
networks:
wpp-network:
name: wpp-network
driver: bridge