-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
56 lines (48 loc) · 1.24 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
version: '3.5'
services:
frontend:
build: .
ports:
- "8080:8080"
volumes:
- .:/app:Z
# If npm refuses to start, you may need to use the `node` user instead of
# ${UID}. However, on Linux, the latter might cause issues with file
# permissions in the `/app` bind-mount.
user: ${UID}
environment:
- CI=true
- REACT_APP_BACKEND_URL=http://localhost:8000
- REACT_APP_ENABLE_WEBSOCKETS_SUPPORT=true
- REACT_APP_BACKEND_WS_URL=ws://localhost:8000/ws
- REACT_APP_USE_SECURE_COOKIE=false
- REACT_APP_DEBUG=true
api:
build:
context: docker/api
args:
BRANCH: master
ports:
- "8000:8000"
depends_on:
- postgres
- redis
environment:
- TIME_ZONE=Europe/Oslo
- DJANGO_SETTINGS_MODULE=dockerdev
- DATABASE_URL=postgresql://argus:HahF9araeKoo@postgres/argus
- ARGUS_FRONTEND_URL=http://localhost:8080
- ARGUS_REDIS_SERVER=redis
postgres:
image: "postgres:14"
volumes:
- postgres:/var/lib/postgresql/data:Z
environment:
- POSTGRES_USER=argus
- POSTGRES_PASSWORD=HahF9araeKoo
- POSTGRES_DB=argus
redis:
image: "redis:latest"
volumes:
postgres:
driver: local