-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
67 lines (64 loc) · 1.16 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
60
61
62
63
64
65
66
67
version: '3'
services:
front:
image: node:12-alpine
volumes:
- "./front:/code"
- "./front/node_modules:/code/node_modules"
working_dir: /code
command: npm run dev
#/bin/bash ./run_dev.sh
ports:
- "8081:8080"
# networks:
# - default
redis:
image: redis
restart: always
ports:
- "6380:6379"
volumes:
- "./redis_conf:/usr/local/etc/redis"
- "./redis_data:/data"
command: redis-server
networks:
app_net:
ipv4_address: 10.10.10.1
backend:
image: maven:3-jdk-12
command: mvn spring-boot:run
volumes:
- .:/code
- ./m2:/root/.m2
working_dir: /code
ports:
- "9008:9007"
links:
- redis
depends_on:
- redis
networks:
- app_net
nginx:
image: nginx
volumes:
- "$PWD/front/dist:/usr/share/nginx/html"
- "$PWD/nginx_conf:/etc/nginx/conf.d"
ports:
- "3001:3000"
- "3002:80"
networks:
- app_net
# depends_on:
# - backend
# - front
networks:
app_net:
driver: bridge
ipam:
config:
- subnet: 10.10.0.0/16
#networks:
# default:
# # Use a custom driver
# driver: custom-driver-1