-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.yml
74 lines (68 loc) · 1.68 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.9"
services:
api:
container_name: api
build:
context: ./
dockerfile: ./apps/api/Dockerfile
image: bandada-api:latest
restart: unless-stopped
env_file:
- apps/api/.env
ports:
- "3000:3000"
networks:
- bandada
client:
container_name: client
build:
context: ./
dockerfile: ./apps/client/Dockerfile
image: bandada-client:latest
restart: unless-stopped
environment:
- NODE_ENV=production
ports:
- "3002:80"
networks:
- bandada
depends_on:
- api
dashboard:
container_name: dashboard
build:
context: ./
dockerfile: ./apps/dashboard/Dockerfile
image: bandada-dashboard:latest
restart: unless-stopped
environment:
- NODE_ENV=production
ports:
- "3001:80"
networks:
- bandada
depends_on:
- api
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: helloworld
POSTGRES_DB: bandada
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
- ./database/seed.sql:/docker-entrypoint-initdb.d/seed.sql
ports:
- "5432:5432"
restart: unless-stopped
command: postgres -c listen_addresses='*'
networks:
- bandada
networks:
bandada:
internal: false
driver: bridge
volumes:
postgres: