-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
51 lines (46 loc) · 1.11 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
version: '2'
services:
app:
image: aastashov/webchat:latest
container_name: webchat-app
build: .
env_file:
- .env
volumes:
- /opt/webchat/:/opt/webchat/
- /opt/webchat/static/:/srv/webchat/static/
restart: always
depends_on:
- srv
- db
networks:
- webchat
srv:
image: nginx:latest
container_name: webchat-srv
volumes:
- ./volumes/nginx.conf:/etc/nginx/conf.d/default.conf
- /opt/webchat/:/opt/webchat/
ports:
- "81:80"
restart: always
db:
image: postgres:9.6.6
container_name: webchat-db
env_file:
- .env
volumes:
- /opt/webchat/postgresql/data:/var/lib/postgresql/data
restart: always
networks:
- webchat
cert:
image: aastashov/certbot:latest
build: volumes/certbot
command: certonly -d webchat.retus.space --webroot --webroot-path /var/www/ --agree-tos --force-renewal --email alexander.astashov.vl@gmail.com
volumes:
- /opt/webchat/certbot-www:/var/www/
- /opt/webchat/certbot-certs:/etc/letsencrypt
networks:
webchat:
external: True