-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose-production.yml
120 lines (112 loc) · 2.66 KB
/
docker-compose-production.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: '3.8'
services:
jasma-pg-db:
container_name: jasma-pg-db
image: postgres:14.7-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
expose:
- 5432
ports:
- "5432:5432"
networks:
- jasma-network
volumes:
- jasma-storage:/var/lib/postgresql/data
jasma-redis-db:
container_name: jasma-redis-db
image: redis:7.0.10-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning
expose:
- 6379
ports:
- '6379:6379'
networks:
- jasma-network
volumes:
- jasma-storage:/redis-data
jasma-api-server:
container_name: jasma-api-server
build:
context: ./express
target: production
args:
- START_FIRST_TIME=true
- NODE_ENV=production
- HOSTNAME=http://localhost
- PORT=5000
- SESSION_SECRET=keyboard cat
- NEXTJS_ORIGIN=http://localhost
- NEXTJS_PORT=3000
- PG_SUPER_USER=postgres
- PG_SUPER_PASSWORD=postgres
- PG_ADMIN_USER=jasma_admin
- PG_ADMIN_PASSWORD=a
- PG_HOST=jasma-pg-db
- PG_PORT=5432
- PG_SUPER_DATABASE=postgres
- PG_ADMIN_DATABASE=jasma_db
- REDIS_HOST=jasma-redis-db
- REDIS_PORT=6379
- PAYPAL_SECRET=''
- PAYPAL_CLIENT_ID_SANDBOX=''
- PAYPAL_CLIENT_ID_PRODUCTION=''
- STRIPE_SECRET_KEY=''
restart: always
image: jasma-api-server
expose:
- 5000
ports:
- '5000:5000'
networks:
- jasma-network
depends_on:
- jasma-pg-db
- jasma-redis-db
jasma-client:
container_name: jasma-client
build:
context: ./next
target: production
args:
- BASE_URL=http://localhost
- PORT=3000
- NEXT_PUBLIC_API_SERVER_URL=localhost
- NEXT_PUBLIC_API_SERVER_PORT=5000
- NEXT_PUBLIC_NODE_ENV=production
- ANALYZE=false
- SESSION_SECRET=thisisatemporarysecret
- PAYPAL_SECRET=''
- NEXT_PUBLIC_PAYPAL_CLIENT_ID_SANDBOX=''
- NEXT_PUBLIC_PAYPAL_CLIENT_ID_PRODUCTION=''
- NEXT_TELEMETRY_DEBUG=1
- NEXT_TELEMETRY_DISABLED=1
restart: always
image: jasma-client
expose:
- 3000
ports:
- '3000:3000'
networks:
- jasma-network
depends_on:
- jasma-api-server
jasma-nginx:
container_name: jasma-nginx
build:
context: ./nginx
target: production
restart: always
ports:
- '80:80'
networks:
- jasma-network
volumes:
jasma-storage:
driver: local
networks:
jasma-network:
driver: bridge