-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.16 KB
/
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
47
48
49
50
51
52
53
54
55
services:
invoices-app:
image: invoices-app
container_name: invoices-app
restart: always
environment:
- REACT_APP_API_URL=http://localhost:5000
ports:
- 3000:3000
networks:
- invoices_networks
depends_on:
- invoices-api
invoices-api:
image: invoices-api
container_name: invoices-api
restart: always
environment:
- DATABASE_URL=postgres://admin:admin@invoices-db:5432/invoice-production;
ports:
- 5000:5000
networks:
- invoices_networks
depends_on:
- invoices-db
invoices-db:
image: postgres:latest
container_name: invoices-db
restart: always
environment:
POSTGRES_DB: invoice-production
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
ports:
- "5432:5432"
networks:
- invoices_networks
invoices-dbmanager:
image: dpage/pgadmin4:latest
container_name: invoices-dbmanager
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- invoices-db
networks:
- invoices_networks
networks:
invoices_networks: {}