File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,11 @@ services:
12
12
13
13
DATABASE_URL : " postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
14
14
ALLOW_SIGNUP : " False"
15
- ports :
16
- - 8000:8000
17
15
depends_on :
18
16
- postgres
17
+ networks :
18
+ - network-backend
19
+ - network-frontend
19
20
20
21
frontend :
21
22
build : ./frontend
@@ -28,9 +29,11 @@ services:
28
29
- static_volume:/home/app/web/staticfiles
29
30
- www:/var/www/html:ro
30
31
ports :
31
- - 1337 :80
32
+ - 80 :80
32
33
depends_on :
33
34
- backend
35
+ networks :
36
+ - network-frontend
34
37
35
38
postgres :
36
39
image : postgres:12.0-alpine
@@ -40,10 +43,14 @@ services:
40
43
POSTGRES_USER : " doccano"
41
44
POSTGRES_PASSWORD : " doccano"
42
45
POSTGRES_DB : " doccano"
43
- ports :
44
- - 5432:5432
46
+ networks :
47
+ - network-backend
45
48
46
49
volumes :
47
50
postgres_data :
48
51
static_volume :
49
52
www :
53
+
54
+ networks :
55
+ network-backend :
56
+ network-frontend :
Original file line number Diff line number Diff line change @@ -15,4 +15,3 @@ RUN npm install
15
15
16
16
# build project
17
17
RUN npm run build
18
- RUN ls -l
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default {
31
31
] ,
32
32
33
33
env : {
34
- baseUrl : process . env . NODE_ENV ! == 'production' ? '/v1' : 'http://127.0.0.1:8000/v1'
34
+ baseUrl : process . env . NODE_ENV = == 'production' ? '/v1' : 'http://127.0.0.1:8000/v1'
35
35
} ,
36
36
37
37
/*
You can’t perform that action at this time.
0 commit comments