-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (42 loc) · 785 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (42 loc) · 785 Bytes
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
version: '2'
services:
web:
restart: always
build: ./web/
expose:
- "8000"
depends_on:
- postgres
- redis
env_file: .env
volumes:
- ./web:/data/web
- ./logs:/data/logs
entrypoint: /data/web/docker-entrypoint.sh
nginx:
restart: always
build: ./nginx/
ports:
- "80:80"
volumes_from:
- web
depends_on:
- web
postgres:
restart: always
image: postgres:latest
volumes:
- db_data:/var/lib/postgresql
- ./postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./backups/postgresql:/backup
env_file:
- .env
expose:
- "5432"
redis:
restart: always
image: redis:latest
expose:
- "6379"
volumes:
db_data: