-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
67 lines (67 loc) · 1.6 KB
/
docker-compose.prod.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
services:
# verbecc:
# container_name: verbecc
# image: bretttolbert/verbecc-svc:latest
# restart: always
# ports:
# - 8000:8000
# networks:
# - app_network
# expose:
# - '8000'
# extra_hosts:
# - 'host.docker.internal:host-gateway'
# api:
# container_name: api
# build:
# context: .
# dockerfile: ./apps/api/Dockerfile
# restart: always
# ports:
# - 4000:4000
# networks:
# - app_network
# expose:
# - '4000'
# environment:
# - VERBECC_API_URL=verbecc
# - TRPC_PORT=4000
# volumes:
# - ./apps/api:/app/apps/api
# - /app/node_modules
# - /app/dist
# - /app/
# image: ${IMAGE_URI:-api}:${IMAGE_TAG:-latest}
client:
container_name: client
build:
context: .
dockerfile: ./apps/client/Dockerfile
restart: always
ports:
- 3000:3000
networks:
- app_network
environment:
- VERBECC_API=http://localhost:8000
- NODE_ENV=production
- NEXT_PUBLIC_TRPC_API=http://localhost:8080
volumes:
- ./:/app
- /app/node_modules
- /app/.next
image: ${IMAGE_URI:-client}:${IMAGE_TAG:-latest}
# reverse-proxy:
# image: nginx:latest
# container_name: nginx_container
# ports:
# - 3050:80
# volumes:
# - ./packages/config/nginx.conf:/etc/nginx/nginx.conf
# extra_hosts:
# - 'host.docker.internal:host-gateway'
# Define a network, which allows containers to communicate
# with each other, by using their container name as a hostname
networks:
app_network:
external: true