-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
81 lines (73 loc) · 1.33 KB
/
docker-compose.prod.yml
File metadata and controls
81 lines (73 loc) · 1.33 KB
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
version: '3.8'
services:
api:
build:
context: ./api
dockerfile: ./Dockerfile.prod
args:
DENO_VERSION: ${DENO_VERSION-1.18.0}
DENO_ENV: ${DENO_ENV-production}
BACKEND_ENTRYPOINT: deno
container_name: token-auth-server
# volumes:
# - '${PWD}/api:/api'
depends_on:
- api_mongo
- api_redis
ports:
- "3001:3001"
networks:
- backend
- database
env_file:
- '.env'
forms:
build:
context: ./forms
dockerfile: ./Dockerfile.prod
container_name: token-auth-forms
depends_on:
- api
ports:
- "3002:3002"
networks:
- forms
- backend
env_file:
- '.env'
api_redis:
image: redis:latest
container_name: api_redis
ports:
- "6379:6379"
networks:
- backend
api_mongo:
image: mongo:latest
container_name: api_mongo
volumes:
- mongodb_api:/data/db
ports:
- '27017:27017'
networks:
- database
env_file:
- '.env'
nginx:
image: nginx:stable-alpine
ports:
- '3000:80'
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- forms
- api
networks:
- forms
- backend
volumes:
mongodb_api:
networks:
forms:
backend:
database: