-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·49 lines (46 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
executable file
·49 lines (46 loc) · 1.01 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
version: '3.2'
services:
postgres:
restart: always
image: postgres:10
container_name: postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=pavel
- POSTGRES_PASSWORD=cravets
- POSTGRES_DB=storage
- POSTGRES_HOST=localhost
volumes:
- ./postgres:/docker-entrypoint-initdb.d:ro
storage:
restart: always
build: ./server/.
container_name: storage
ports:
- 3000:3000
links:
- postgres
environment:
- DATABASE_URL=postgresql://pavel:cravets@postgres:5432/storage?charset=utf8
- NODE_ENV=production
- PORT=3000
depends_on:
- postgres
volumes:
- ./server/data/:/server/data
user-service:
restart: always
build: ./user-service/.
container_name: user-service
ports:
- 9000:9000
links:
- postgres
environment:
- DB_URL=jdbc:postgresql://postgres:5432/storage
- DB_PASSWORD=cravets
- DB_USER=pavel
- PORT=9000
depends_on:
- postgres