forked from adfinis/timed-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (38 loc) · 864 Bytes
/
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
version: "3"
services:
db:
image: postgres:9.4
ports:
- 5432:5432
volumes:
- dbdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=timed
- POSTGRES_PASSWORD=timed
frontend:
build:
context: .
ports:
- 4200:80
backend:
image: ghcr.io/adfinis/timed-backend:latest
ports:
- 8000:80
depends_on:
- db
- mailhog
environment:
- DJANGO_DATABASE_HOST=db
- DJANGO_DATABASE_PORT=5432
- ENV=docker
- STATIC_ROOT=/var/www/static
- EMAIL_URL=smtp://mailhog:1025
command: /bin/sh -c "wait-for-it.sh -t 60 db:5432 -- ./manage.py migrate && ./manage.py loaddata timed/fixtures/test_data.json && uwsgi"
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
environment:
- MH_UI_WEB_PATH=mailhog
volumes:
dbdata: