forked from IEEE-NITK/corpus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.32 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
67
68
69
70
version: '3.1'
services:
postgres:
image: postgres:${POSTGRES_VERSION}
restart: always
env_file:
- .env
expose:
- ${POSTGRES_PORT}
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U corpus" ]
interval: 30s
timeout: 30s
retries: 5
start_period: 30s
networks:
- corpus_network
volumes:
- postgres_data:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
env_file:
- .env
networks:
- corpus_network
corpus:
build:
context: corpus
dockerfile: dev-Dockerfile
working_dir: /corpus
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
restart: always
ports:
- "8000:8000"
- "465:465"
networks:
- corpus_network
volumes:
- ./corpus:/corpus
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
environment:
- ENVIRONMENT=DEVELOPMENT
- EMAIL_PROTOCOL=console
jstoolchain:
build:
context: corpus
dockerfile: node-Dockerfile
working_dir: /opt/app
volumes:
- ./corpus/templates:/opt/app/templates
command: npm run tailwind-dev
tty: true
networks:
corpus_network:
volumes:
static_files:
postgres_data: