-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
68 lines (61 loc) · 1.29 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: '2'
services:
server:
env_file: .env
container_name: "zenofcoder-web-server"
build:
context: ./zenofcoder-web/server
dockerfile: Dockerfile-web-server
labels:
application: "zenofcoder-web-server"
volumes:
- /opt/zenofcoder/static
- /opt/zenofcoder/logs
expose:
- "8000"
depends_on:
- db
- redis
client:
build:
context: ./zenofcoder-web/client
dockerfile: Dockerfile-web-client
container_name: "zenofcoder-web-client"
labels:
application: "zenofcoder-web-client"
nginx:
container_name: "zenofcoder-nginx"
build:
context: ./nginx
dockerfile: Dockerfile-nginx
volumes_from:
- server
- client
ports:
- "80:80"
labels:
application: "zenofcoder-nginx"
depends_on:
- server
redis:
image: redis:latest
container_name: "zenofcoder-redis"
labels:
application: "zenofcoder-redis"
expose:
- "6379"
db:
image: postgres:latest
container_name: "zenofcoder-db"
labels:
application: "zenofcoder-db"
expose:
- "5432"
volumes_from:
- data
data:
image: postgres:latest
container_name: "zenofcoder-data"
volumes:
- /var/lib/postgresql
command: /bin/true