-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.51 KB
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
60
61
62
63
64
65
66
67
68
services:
backend:
build:
context: ./Zivorp_Backend
dockerfile: Dockerfile
container_name: spring-backend
working_dir: /app
ports:
- "8080:8080"
networks:
- debug-net
depends_on:
- flask
links: # ✅ 추가: 백엔드에서 'flask-server'로 접근 가능
- flask:flask-server
flask:
build:
context: ./Zivorp_Spike
dockerfile: Dockerfile
container_name: flask-server
ports:
- "5050:5050"
volumes:
- /home/ec2-user/Zivorp_Spike/server/code:/usr/src/app/code
- /var/run/docker.sock:/var/run/docker.sock
networks:
- debug-net
dns:
- 8.8.8.8
- 8.8.4.4
environment:
- PYTHONIOENCODING=utf-8
- LANG=C.UTF-8
- LC_ALL=C.UTF-8
env_file:
- ./Zivorp_Spike/.env
python-compiler:
build:
context: ./Zivorp_Spike/docker/python
image: python-compiler
container_name: python-compiler
entrypoint: [ "echo", "python-compiler image build only" ]
networks:
- debug-net
c-compiler:
build:
context: ./Zivorp_Spike/docker/c
image: c-compiler
container_name: c-compiler
entrypoint: [ "echo", "c-compiler image build only" ]
networks:
- debug-net
java-compiler:
build:
context: ./Zivorp_Spike/docker/java
image: java-compiler
container_name: java-compiler
entrypoint: [ "echo", "java-compiler image build only" ]
networks:
- debug-net
networks:
debug-net:
driver: bridge