-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
46 lines (42 loc) · 909 Bytes
/
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
version: "3.8"
services:
postgres:
image: postgres:16.1
restart: always
environment:
- POSTGRES_PASSWORD=${PG_PASSWORD}
- POSTGRES_DB=${PG_DATABASE}
ports:
- 5432:5432
networks:
- shared-network
volumes:
- ./postgres-db:/var/lib/postgresql/data
server:
container_name: lost_and_found_server
restart: unless-stopped
image: lost-and-found-server-dev:tag-v1.0.0
build:
context: server
dockerfile: Dockerfile
ports:
- 8080:8080
networks:
- shared-network
depends_on:
- postgres
client:
container_name: lost_and_found_client
restart: unless-stopped
image: lost-and-found-client-dev:tag-v1.0.0
build:
context: client
dockerfile: Dockerfile
ports:
- 3000:3000
networks:
- shared-network
depends_on:
- server
networks:
shared-network: