mirror of
https://github.com/spliit-app/spliit.git
synced 2025-12-06 01:19:29 +01:00
Docker compose: allow to build container and use internal network (#320)
* docker compose: allow to build container * docker compose: use interanl network
This commit is contained in:
15
compose.yaml
15
compose.yaml
@@ -1,6 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: spliit2:latest
|
build: .
|
||||||
|
image: spliit:latest
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
env_file:
|
env_file:
|
||||||
@@ -8,11 +9,13 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
networks:
|
||||||
|
- spliit_network
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
ports:
|
expose:
|
||||||
- 5432:5432
|
- 5432
|
||||||
env_file:
|
env_file:
|
||||||
- container.env
|
- container.env
|
||||||
volumes:
|
volumes:
|
||||||
@@ -22,3 +25,9 @@ services:
|
|||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
networks:
|
||||||
|
- spliit_network
|
||||||
|
|
||||||
|
networks:
|
||||||
|
spliit_network:
|
||||||
|
driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user