-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (50 loc) · 1.39 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
60
services:
tvservicecrm.server:
container_name: tvservicecrm.server
image: ${DOCKER_REGISTRY-}webapi
build:
context: .
dockerfile: TVServiceCRM.Server/Dockerfile
ports:
- 8080:8080
expose:
- 8080
volumes:
- /mnt/tvsercivecrmvolume:/app/VolumeDB
# - test1:/app/VolumeDB
restart: unless-stopped
environment:
- ASPNETCORE_URLS=http://*:8080
networks:
- nginx-network
nginx:
image: nginx:stable-alpine
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- ./TVServiceCRM.Server/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./TVServiceCRM.Server/Certbot/config:/etc/letsencrypt:ro
- ./TVServiceCRM.Server/Certbot/www:/usr/share/nginx/html/:ro
environment:
- NGINX_HOST=alexps.gr
depends_on:
- tvservicecrm.server
links:
- tvservicecrm.server
networks:
- nginx-network
certbot:
image: certbot/certbot
volumes:
- ./TVServiceCRM.Server/Certbot/config:/etc/letsencrypt/:rw
- ./TVServiceCRM.Server/Certbot/www:/usr/share/nginx/html/:rw
# command: certonly --webroot -w /var/www/certbot --force-renewal --email [email protected] -d www.alexps.gr -d alexps.gr --agree-tos
restart: unless-stopped
networks:
nginx-network:
driver: bridge
# volumes:
# test1:
# external: true