-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
40 lines (39 loc) · 902 Bytes
/
build.yml
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
version: "3.2"
services:
django:
build:
context: ./django
dockerfile: Dockerfile
image: ddmal/simssadb_django:latest
command: bash -c "tail -f /dev/null"
env_file: ./misc/variables.txt
depends_on:
- postgres
- elasticsearch
volumes:
- "./django/simssadb:/code/simssadb"
- static_volume:/code/simssadb/static
postgres:
build:
context: ./postgres
dockerfile: Dockerfile
image: ddmal/simssadb_postgres:latest
env_file: ./misc/variables.txt
volumes:
- postgres_data:/var/lib/postgresql/data/
elasticsearch:
image: "elasticsearch:5"
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
image: ddmal/simssadb_nginx:latest
volumes:
- static_volume:/usr/src/app/static
ports:
- "1337:80"
depends_on:
- django
volumes:
postgres_data:
static_volume: