-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 797 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 797 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
version: "2"
services:
nginx:
container_name: nginx-[app_name]
build:
context: nginx
dockerfile: Dockerfile-[app_name]
image: nginx-[app_name]
depends_on:
- web
ports:
- "80:80"
- "443:443"
volumes:
- ./[project_parent_dir]/[project_name]:/var/www/[app_name]
web:
container_name: [app_name]
build:
context: [project_parent_dir]
dockerfile: Dockerfile-[app_name]
image: [app_name]
links:
- postgres
depends_on:
- postgres
expose:
- "8000"
postgres:
container_name: postgres-server
image: postgres
ports:
- "5432:5432"