-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 962 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 962 Bytes
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
version: '3.9'
services:
be:
container_name: PCompilerBE
build:
context: ./python
dockerfile: Dockerfile
ports:
- "2604:2604"
environment:
PYTHONDONTWRITEBYTECODE: "1"
PYTHONUNBUFFERED: "1"
FORWARDED_ALLOW_IPS: "*"
command: sh -c "poetry run uvicorn index:app --reload --host 0.0.0.0 --port 2604"
networks:
- pcompiler
web:
container_name: PCompilerWeb
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_URL: "http://116.118.51.244:2604/api/py"
NEXT_PUBLIC_ELECTRON: false
networks:
- pcompiler
nginx:
depends_on:
- web
- be
container_name: nginx
image: nginx:latest
volumes:
- ./deployment/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "80:80"
- "443:443"
networks:
- pcompiler
networks:
pcompiler:
driver: bridge