forked from sarang682/AlgoWithMe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (52 loc) ยท 990 Bytes
/
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
version: '3.8'
networks:
algo-net:
driver: bridge
services:
nginxproxy:
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- /home/ubuntu/jenkins-data/workspace/Algowithme/.nginx:/etc/nginx/conf.d:ro
- /etc/letsencrypt:/etc/nginx/ssl:ro
restart: always
networks:
- algo-net
backend:
depends_on:
- nginxproxy
build:
context: ./back
dockerfile: Dockerfile
restart: always
expose:
- "8081"
environment:
- SPRING_PROFILES_ACTIVE=dev
- JASYPT_KEY=${JASYPT_KEY}
networks:
- algo-net
front:
depends_on:
- nginxproxy
build:
context: ./front_react
dockerfile: Dockerfile
expose:
- "80"
restart: always
networks:
- algo-net
execute:
depends_on:
- nginxproxy
build:
context: ./execute
dockerfile: Dockerfile
restart: always
expose:
- "8082"
networks:
- algo-net