-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
60 lines (56 loc) · 1.29 KB
/
docker-compose.yaml
File metadata and controls
60 lines (56 loc) · 1.29 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
app-service:
build:
context: ./app-service
dockerfile: Dockerfile.dev
ports:
- "8000:8000"
environment:
- STORAGE_SERVICE_URL=http://storage-service:8001
- POSTGRES_DB=commerce_db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
volumes:
- ./app-service:/app
env_file:
- ./app-service/.env
depends_on:
- database
storage-service:
build:
context: ./storage-service
dockerfile: Dockerfile.dev
ports:
- "8001:8001"
environment:
- POSTGRES_DB=files_db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
volumes:
- ./storage-service:/app
env_file:
- ./storage-service/.env
depends_on:
- database
database:
image: postgres:16
ports:
- '5432:5432'
volumes:
- ./database/init:/docker-entrypoint-initdb.d # create multiple databases
- pg_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=commerce_db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
pgadmin:
image: dpage/pgadmin4
ports:
- '4080:80'
environment:
PGADMIN_DEFAULT_EMAIL: com@file.com
PGADMIN_DEFAULT_PASSWORD: fi123
depends_on:
- database
volumes:
pg_data: