-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
66 lines (60 loc) · 1.56 KB
/
docker-compose.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
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
# Uses Compose Specification (https://github.com/compose-spec/compose-spec/blob/master/spec.md)
services:
app:
build:
context: .
dockerfile: ./web-app/Dockerfile
args:
- DEVELOPMENT=$DEVELOPMENT
container_name: vim-app
volumes:
- ./web-app/django:/virtual-instrument-museum/vim-app
- vim-static:/virtual-instrument-museum/static
depends_on:
postgres:
condition: service_healthy
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- HOST_NAME=${HOST_NAME}
- DJANGO_SECRET_KEY=${DJANGO_SECRET_KEY}
command: /virtual-instrument-museum/django-startup.sh
postgres:
image: postgres:15.4
container_name: vim-db
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
interval: 15s
timeout: 30s
retries: 5
start_period: 30s
restart: unless-stopped
nginx:
build: ./nginx
container_name: vim-nginx
restart: unless-stopped
environment:
- HOST_NAME=${HOST_NAME}
ports:
- "${PORT}:80"
volumes:
- vim-static:/virtual-instrument-museum/static
depends_on:
- app
solr:
build: ./solr
container_name: vim-solr
restart: unless-stopped
ports:
- "8983:8983"
networks:
vim-net:
volumes:
vim-static: