fix(docker): configure public DNS servers in compose to resolve external API hostnames
Deploy Canina / deploy (push) Successful in 50s
Deploy Canina / deploy (push) Successful in 50s
This commit is contained in:
1 parent
ad854a717b
commit
e82d2b88c1
2 files changed
+17
-1
No files matched your search
+9
-1
@@ -25,6 +25,10 @@ services:
|
||||
dockerfile: Dockerfile
|
||||
container_name: canino_backend_prod
|
||||
restart: always
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 1.1.1.1
|
||||
- 4.2.2.4
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://canino_prod:caninopassword_prod@db_prod:5432/caninodb_prod?schema=public
|
||||
- REDIS_HOST=redis_prod
|
||||
@@ -44,12 +48,16 @@ services:
|
||||
networks:
|
||||
- traefik_public
|
||||
|
||||
frontend_prod:
|
||||
frontend_prod:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: canino_frontend_prod
|
||||
restart: always
|
||||
dns:
|
||||
- 8.8.8.8
|
||||
- 1.1.1.1
|
||||
- 4.2.2.4
|
||||
environment:
|
||||
- NEXT_PUBLIC_API_URL=http://backend_prod:3000
|
||||
labels:
|
||||
|
||||
Reference in new issue
Block a user