-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
52 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
52
version: '2'
services:
nginx:
image: nginx:1.13-alpine
container_name: tct.static
environment:
NGINX_CONF: |-
server {
listen 80;
access_log /var/log/nginx/access.log main;
location /static {
sendfile on;
tcp_nopush on;
gzip on;
gzip_types text/plain application/x-javascript text/css;
expires 1d;
root /var/local/tct;
}
}
depends_on:
- app
volumes:
- static-files:/var/local/tct/static:ro
command: /bin/sh -c 'echo "$$NGINX_CONF" > /etc/nginx/conf.d/default.conf && exec nginx -g "daemon off;"'
app:
image: eeacms/tct-biodiversity:1.30.0-alpine
container_name: tct.app
depends_on:
- postgres
env_file:
- ./docker/postgres.env
- ./docker/demo.env
volumes:
- static-files:/var/local/tct/static
postgres:
image: postgres:9-alpine
container_name: tct.db
env_file:
- ./docker/postgres.env
volumes:
- data:/var/lib/postgresql/data
volumes:
static-files:
driver: local
data:
driver: local