forked from mathesar-foundation/mathesar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (38 loc) · 1.02 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
version: "3.9"
services:
db:
image: postgres:13
container_name: mathesar_db
environment:
- POSTGRES_DB=${POSTGRES_DB-mathesar_django}
- POSTGRES_USER=${POSTGRES_USER-mathesar}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD-mathesar}
ports:
- "5432:5432"
volumes:
- ./.volumes:/var/lib/postgresql/data
service:
build:
context: .
# Change this to Dockerfile.integ-tests to be able to run e2e integ tests
dockerfile: Dockerfile
container_name: mathesar_service
environment:
- MODE=${MODE-PRODUCTION}
- DJANGO_ALLOW_ASYNC_UNSAFE=true
- DISPLAY=${DISPLAY}
- XAUTHORITY=/.Xauthority
command: dockerize -wait tcp://mathesar_db:5432 -timeout 30s ./run.sh
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.Xauthority:/.Xauthority
- .:/code/
- ui_node_modules:/code/mathesar_ui/node_modules/
ports:
- "8000:8000"
- "3000:3000"
- "6006:6006"
depends_on:
- db
volumes:
ui_node_modules: