-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (51 loc) · 1.02 KB
/
docker-compose.yaml
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
version: '3.3'
services:
backend:
image: komalreddyk/backendgo:latest
container_name: backend
ports:
- "9000:9000"
environment:
- DB_ADDR=database
links:
- "database:db"
# depends_on:
# - database
networks:
- mynet
database:
image: postgres
container_name: database
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=abc@123
- POSTGRES_DB=management
volumes:
- database_postgres:/var/lib/postgresql/data
ports:
- "6000:5432"
networks:
- mynet
frontend:
image: komalreddyk/frontendgo:latest
# build:
# args:
# react_app_B_ADDR: backend
container_name: frontend
ports:
- "8000:8000"
environment:
- B_ADDR=backend
- react_app_B_ADDR=backend
links:
- backend
depends_on:
- backend
networks:
- mynet
volumes:
database_postgres:
## Networks to be created to facilitate communication between containers
networks:
mynet:
driver: bridge