Skip to content

Commit c8b3443

Browse files
committed
caddy work properly
1 parent 1db0b62 commit c8b3443

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Caddyfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
localhost {
2-
#gzip
1+
0.0.0.0 {
2+
gzip
33
log stdout
44
errors stdout
55
cors
66
root /var/www/html
7-
#proxy /api server:8000 {
8-
# header_upstream Accept-Encoding {>Accept-Encoding}
9-
#}
7+
proxy /api server:8000 {
8+
header_upstream Accept-Encoding {>Accept-Encoding}
9+
}
1010
tls off
1111
}

docker-compose.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ services:
1313
- server
1414
depends_on:
1515
- server
16+
#volumes:
17+
# - ./Caddyfile:/etc/Caddyfile
1618

1719
server:
1820
build:
@@ -21,9 +23,6 @@ services:
2123
image: prensa
2224
container_name: "prensa"
2325

24-
# volumes:
25-
# - backend-observatorio:/data/db
26-
2726
command: python /backend-observatorio/production.py
2827

2928
ports:
@@ -50,7 +49,7 @@ services:
5049
- prensamongodata:/data/db
5150
ports:
5251
- 27017:27017
53-
command: mongod --wiredTigerCacheSizeGB=2
52+
command: mongod --wiredTigerCacheSizeGB=1
5453
# --wiredTigerCacheSizeGB=n limit the amount of ram used to n
5554

5655
volumes:

0 commit comments

Comments
 (0)