forked from kreneskyp/ix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·59 lines (52 loc) · 1.21 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
version: "3"
services:
db:
image: postgres:14.7
environment:
POSTGRES_PASSWORD: ix
POSTGRES_USER: ix
POSTGRES_DB: ix
POSTGRES_HOST_AUTH_METHOD: trust
web:
image: ghcr.io/ix/sandbox:latest
#image: ghcr.io/ix:latest
command: uvicorn ix.server.asgi:application --host 0.0.0.0 --port 8001 --reload
ports:
- "8001:8001"
links:
- db
- redis
volumes:
- .:/var/app
#- .node_modules:/var/npm/node_modules
- ./bin:/usr/bin/ix
- .bash_profile:/root/.bash_profile
- .ipython:/root/.ipython
env_file:
- .env
environment:
DJANGO_SETTINGS_MODULE: "ix.server.settings"
nginx:
image: nginx:latest
ports:
- "8000:8000"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./.compiled-static:/var/static/
depends_on:
- web
worker:
image: ghcr.io/ix/sandbox:latest
command: celery.sh
links:
- db
- redis
volumes:
- .:/var/app
- .node_modules:/var/npm/node_modules
- ./bin:/usr/bin/ix
- .bash_profile:/root/.bash_profile
env_file:
- .env
redis:
image: redis