Skip to content

Commit a8dabb8

Browse files
committed
Update docker's network configuration
1 parent f41f24d commit a8dabb8

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

docker-compose.prod.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ services:
1212
ADMIN_EMAIL: "[email protected]"
1313
DATABASE_URL: "postgres://doccano:doccano@postgres:5432/doccano?sslmode=disable"
1414
ALLOW_SIGNUP: "False"
15-
ports:
16-
- 8000:8000
1715
depends_on:
1816
- postgres
17+
networks:
18+
- network-backend
19+
- network-frontend
1920

2021
frontend:
2122
build: ./frontend
@@ -28,9 +29,11 @@ services:
2829
- static_volume:/home/app/web/staticfiles
2930
- www:/var/www/html:ro
3031
ports:
31-
- 1337:80
32+
- 80:80
3233
depends_on:
3334
- backend
35+
networks:
36+
- network-frontend
3437

3538
postgres:
3639
image: postgres:12.0-alpine
@@ -40,10 +43,14 @@ services:
4043
POSTGRES_USER: "doccano"
4144
POSTGRES_PASSWORD: "doccano"
4245
POSTGRES_DB: "doccano"
43-
ports:
44-
- 5432:5432
46+
networks:
47+
- network-backend
4548

4649
volumes:
4750
postgres_data:
4851
static_volume:
4952
www:
53+
54+
networks:
55+
network-backend:
56+
network-frontend:

frontend/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ RUN npm install
1515

1616
# build project
1717
RUN npm run build
18-
RUN ls -l

frontend/nuxt.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
],
3232

3333
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'
3535
},
3636

3737
/*

0 commit comments

Comments
 (0)