-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 804 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
services:
app:
image: sf-order-app
container_name: sf-order-app
build:
context: .
dockerfile: docker/app/Dockerfile
volumes:
- type: bind
source: .
target: /app
command: wait-for-it db:5432 -- python manage.py runserver 0.0.0.0:8000
depends_on:
- db
web:
image: sf-order-web
container_name: sf-order-web
build:
context: .
dockerfile: docker/web/Dockerfile
ports:
- "8080:80"
depends_on:
- app
db:
image: sf-order-db
container_name: sf-order-db
build:
context: .
dockerfile: docker/db/Dockerfile
volumes:
- type: volume
source: db-data
target: /var/lib/postgresql/data
volumes:
db-data:
name: sf-order-db-volumes
driver: local