-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.production.yml
39 lines (37 loc) · 1.06 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
version: "3.8"
services:
client:
restart: unless-stopped
image: often127/fxethers-client-production
container_name: fxethers-client-production
build:
context: client
target: production
dockerfile: Dockerfile.production
environment:
- NODE_ENV=production
ports:
- "3000:3000" # map 3000 in container => 3000 in local
server:
restart: unless-stopped
image: often127/fxethers-server-production
container_name: fxethers-server-production
build:
context: server
target: production
dockerfile: Dockerfile.production
volumes:
- "/home/luc/fxnft/production/public:/server/public"
environment:
- NODE_ENV=production
ports:
- "4000:4000" # map 4000 in container => 4000 in local
# RUN
# docker compose -f docker-compose.production.yml up -d
# STOP
# docker compose -f docker-compose.production.yml down
# BUILD
# docker compose -f docker-compose.production.yml build
# PUSH
# docker push often127/fxethers-client-production
# docker push often127/fxethers-server-production